### Question:
CreateWorkspaceRequest extends ChangeRequest { @Override public boolean equals( Object obj ) { if (obj == this) return true; if (this.getClass().isInstance(obj)) { CreateWorkspaceRequest that = (CreateWorkspaceRequest)obj; if (!this.desiredNameOfNewWorkspace.equals(that.desiredNameOfNewWorkspace())) return false; return true; } return false; } CreateWorkspaceRequest( String desiredNameOfNewWorkspace,
                                   CreateConflictBehavior createConflictBehavior ); String desiredNameOfNewWorkspace(); CreateConflictBehavior conflictBehavior(); 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 CreateWorkspaceRequest clone(); @Override RequestType getType(); static final CreateConflictBehavior DEFAULT_CREATE_CONFLICT_BEHAVIOR; }### Answer:
@Test public void shouldConsiderNotEqualTwoRequestsWithDifferentDesiredWorkspaceNames() { request = new CreateWorkspaceRequest(workspace1, CreateConflictBehavior.CREATE_WITH_ADJUSTED_NAME); CreateWorkspaceRequest request2 = new CreateWorkspaceRequest(workspace2, CreateConflictBehavior.CREATE_WITH_ADJUSTED_NAME); assertThat(request.equals(request2), is(false)); }