Project expectedProject = new Project();
Location expectedLocation = new Location("foo");
String expectedDescription = "bar";
// use an anonymous subclass since ProjectComponent is abstract
ProjectComponent pc = new ProjectComponent() {
};
pc.setProject(expectedProject);
pc.setLocation(expectedLocation);
pc.setDescription(expectedDescription);
ProjectComponent cloned = (ProjectComponent) pc.clone();
assertNotSame(pc, cloned);
assertSame(cloned.getProject(), expectedProject);
assertSame(cloned.getLocation(), expectedLocation);
assertSame(cloned.getDescription(), expectedDescription);