PhaseImpl extends XliffElementImpl implements Phase { public void setNotes(List<Note> notes) { Assert.notNull(notes, "notes"); Assert.areInstances(notes, "notes", NoteImpl.class); assertNotAttached(notes); detach(this.notes); this.notes = new ArrayList<Note>(notes); attach(this.notes); } PhaseImpl(PhaseName phaseName, ProcessName processName);  PhaseImpl(Element element); @Override List<? extends Node> getChildren(); CompanyName getCompanyName(); ContactEmail getContactEmail(); ContactName getContactName(); ContactPhone getContactPhone(); Date getDate(); JobId getJobId(); List<Note> getNotes(); PhaseName getPhaseName(); ProcessName getProcessName(); com.sap.mlt.xliff12.api.attribute.Tool getTool(); ToolId getToolId(); void setCompanyName(CompanyName companyName); void setContactEmail(ContactEmail contactEmail); void setContactName(ContactName contactName); void setContactPhone(ContactPhone contactPhone); void setDate(Date date); void setJobId(JobId jobId); void setNotes(List<Note> notes); void setPhaseName(PhaseName phaseName); void setProcessName(ProcessName processName); void setTool(com.sap.mlt.xliff12.api.attribute.Tool tool); void setToolId(ToolId toolId);  }
@Test public void testClone() { PhaseImpl phase = createDefaultPhase(); phase.setNotes(createDefaultNotes()); PhaseImpl clone = (PhaseImpl) phase.clone(); assertEquals(phase, clone); assertNotSame(phase, clone); }