### Question:
DeleteBranchRequest extends ChangeRequest { @Override public boolean equals( Object obj ) { if (obj == this) return true; if (this.getClass().isInstance(obj)) { DeleteBranchRequest that = (DeleteBranchRequest)obj; if (!this.at().isSame(that.at())) return false; if (!this.inWorkspace().equals(that.inWorkspace())) return false; return true; } return false; } DeleteBranchRequest( Location at,
                                String workspaceName ); Location at(); String inWorkspace(); @Override boolean isReadOnly(); void setActualLocationOfNode( Location actual ); Location getActualLocationOfNode(); @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 DeleteBranchRequest clone(); @Override RequestType getType();  }### Answer:
@Test public void shouldConsiderNotEqualTwoRequestsWithDifferentLocations() { request = new DeleteBranchRequest(validPathLocation1, workspace1); DeleteBranchRequest request2 = new DeleteBranchRequest(validPathLocation2, workspace1); assertThat(request.equals(request2), is(false)); }
@Test public void shouldConsiderNotEqualTwoRequestsWithDifferentWorkspaceNames() { request = new DeleteBranchRequest(validPathLocation1, workspace1); DeleteBranchRequest request2 = new DeleteBranchRequest(validPathLocation1, workspace2); assertThat(request.equals(request2), is(false)); }