### Question:
ContentNegotiationHandler { protected boolean requiresConversion(String sourceMimeType, String targetMimeTypee){ return !(targetMimeTypee == null || "application/json".equalsIgnoreCase(targetMimeTypee) || "application/xml".equalsIgnoreCase(targetMimeTypee) || sourceMimeType.equalsIgnoreCase(targetMimeTypee)); }  boolean isAcceptable(Object sourceObject, String sourceMimeType, String targetMimeType); Object handle(Object sourceObject, String sourceMimeType, String targetMimeType,
            Map<String, String[]> additionalProperties);  }### Answer:
@Test public void requiresConversion(){ assertFalse(handler.requiresConversion("", null)); assertFalse(handler.requiresConversion("", "application/json")); assertFalse(handler.requiresConversion("", "application/xml")); assertFalse(handler.requiresConversion("someMimeType", "someMimeType")); assertTrue(handler.requiresConversion("someMimeType1", "someMimeType2")); }