### Question:
Arm extends AbstractNamedEntity<Arm> implements TypeWithNotes { public Arm rename(String newName) { Arm clone = clone(); clone.d_name = newName; return clone; } Arm(String name, int size); @Override String toString(); Integer getSize(); void setSize(Integer size); @Override Set<Entity> getDependencies(); @Override Arm clone(); ObservableList<Note> getNotes(); @Override boolean deepEquals(Entity obj); @Override boolean equals(Object obj); Arm rename(String newName); static final String PROPERTY_SIZE; }### Answer:
@Test public void testRename() { assertNotSame(d_arm, d_arm.rename(d_name)); assertEquals(d_arm, d_arm.rename(d_name)); assertEquals("New name", d_arm.rename("New name").getName()); }