### Question:
MoveBranchRequest extends ChangeRequest { @Override public boolean equals( Object obj ) { if (obj == this) return true; if (this.getClass().isInstance(obj)) { MoveBranchRequest that = (MoveBranchRequest)obj; if (!this.from().isSame(that.from())) return false; if (!this.into().isSame(that.into())) return false; if (!this.conflictBehavior().equals(that.conflictBehavior())) return false; if (!this.workspaceName.equals(that.workspaceName)) return false; return true; } return false; } MoveBranchRequest( Location from,
                              Location into,
                              String workspaceName );  MoveBranchRequest( Location from,
                              Location into,
                              String workspaceName,
                              Name newNameForMovedNode );  MoveBranchRequest( Location from,
                              Location into,
                              String workspaceName,
                              NodeConflictBehavior conflictBehavior );  MoveBranchRequest( Location from,
                              Location into,
                              Location before,
                              String workspaceName,
                              Name newNameForMovedNode,
                              NodeConflictBehavior conflictBehavior ); Location from(); Location into(); Location before(); String inWorkspace(); Name desiredName(); NodeConflictBehavior conflictBehavior(); @Override boolean isReadOnly(); boolean hasNoEffect(); void setActualLocations( Location oldLocation,
                                    Location newLocation ); Location getActualLocationBefore(); Location getActualLocationAfter(); @Override boolean changes( String workspace,
                            Path path ); @Override Location changedLocation(); @Override String changedWorkspace(); @Override void cancel(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); @Override MoveBranchRequest clone(); @Override RequestType getType(); static final NodeConflictBehavior DEFAULT_CONFLICT_BEHAVIOR; }### Answer:
@Test public void shouldConsiderNotEqualTwoRequestsWithDifferentLocations() { request = new MoveBranchRequest(validPathLocation1, validPathLocation2, workspace2); MoveBranchRequest request2 = new MoveBranchRequest(validPathLocation2, validPathLocation1, workspace2); assertThat(request.equals(request2), is(false)); }