### Question:
AuthTargetMapping { public static AuthTargetMappingBuilder builder() { return new AuthTargetMappingBuilder(); } private  AuthTargetMapping(AuthTargetMappingBuilder builder); static AuthTargetMappingBuilder builder(); AuthTarget getAuthTargetMapping(TokenTypeId tokenTypeId); @Override String toString(); @Override boolean equals(Object other); JsonValue toJson(); static AuthTargetMapping fromJson(JsonValue json); Map<String, Set<String>> marshalToAttributeMap(); static AuthTargetMapping marshalFromAttributeMap(Map<String, Set<String>> attributes); static final String AUTH_TARGET_MAPPINGS; }### Answer:
@Test public void testEqualsNot() { AuthTargetMapping mapping1 = AuthTargetMapping .builder() .addMapping(TokenType.USERNAME, AMSTSConstants.AUTH_INDEX_TYPE_MODULE, USERNAME) .build(); AuthTargetMapping mapping2 = AuthTargetMapping .builder() .addMapping(TokenType.X509, AMSTSConstants.AUTH_INDEX_TYPE_MODULE, X509) .addMapping(TokenType.USERNAME, AMSTSConstants.AUTH_INDEX_TYPE_MODULE, USERNAME) .build(); assertNotEquals(mapping1, mapping2); AuthTargetMapping mapping3 = AuthTargetMapping .builder() .build(); AuthTargetMapping mapping4 = AuthTargetMapping .builder() .addMapping(TokenType.X509, AMSTSConstants.AUTH_INDEX_TYPE_MODULE, X509) .addMapping(TokenType.USERNAME, AMSTSConstants.AUTH_INDEX_TYPE_MODULE, USERNAME) .build(); assertNotEquals(mapping3, mapping4); }