### Question:
CloneWorkspaceRequest extends ChangeRequest { @Override public boolean equals( Object obj ) { if (obj == this) return true; if (this.getClass().isInstance(obj)) { CloneWorkspaceRequest that = (CloneWorkspaceRequest)obj; if (!this.nameOfWorkspaceToBeCloned.equals(that.nameOfWorkspaceToBeCloned())) return false; if (!this.desiredNameOfTargetWorkspace.equals(that.desiredNameOfTargetWorkspace())) return false; return true; } return false; } CloneWorkspaceRequest( String nameOfWorkspaceToBeCloned,
                                  String desiredNameOfTargetWorkspace,
                                  CreateConflictBehavior createConflictBehavior,
                                  CloneConflictBehavior cloneConflictBehavior ); String nameOfWorkspaceToBeCloned(); String desiredNameOfTargetWorkspace(); CreateConflictBehavior targetConflictBehavior(); CloneConflictBehavior cloneConflictBehavior(); String getActualWorkspaceName(); void setActualWorkspaceName( String actualWorkspaceName ); Location getActualLocationOfRoot(); void setActualRootLocation( Location actualLocationOfRoot ); @Override boolean isReadOnly(); @Override void cancel(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); @Override Location changedLocation(); @Override String changedWorkspace(); @Override boolean changes( String workspace,
                            Path path ); @Override CloneWorkspaceRequest clone(); @Override RequestType getType(); static final CloneConflictBehavior DEFAULT_CLONE_CONFLICT_BEHAVIOR; static final CreateConflictBehavior DEFAULT_CREATE_CONFLICT_BEHAVIOR; }### Answer:
@Test public void shouldConsiderNotEqualTwoRequestsWithDifferentDesiredWorkspaceNames() { CloneWorkspaceRequest request1 = null; CloneWorkspaceRequest request2 = null; request1 = new CloneWorkspaceRequest(workspace1, workspace2, CreateConflictBehavior.DO_NOT_CREATE, CloneConflictBehavior.SKIP_CLONE); request2 = new CloneWorkspaceRequest(workspace2, workspace1, CreateConflictBehavior.DO_NOT_CREATE, CloneConflictBehavior.DO_NOT_CLONE); assertThat(request1.equals(request2), is(false)); }