### Question:
ContentNegotiationHandler { protected ToClientConverter getToClientConverter(Resource repositoryResource, String targetMimeType){ final String clientType = ClientTypeHelper.extractClientType(targetMimeType); if(targetMimeType != null && clientType == null) throw new NotAcceptableException(); return resourceConverterProvider.getToClientConverter( repositoryResource.getResourceType(), clientType); }  boolean isAcceptable(Object sourceObject, String sourceMimeType, String targetMimeType); Object handle(Object sourceObject, String sourceMimeType, String targetMimeType,
            Map<String, String[]> additionalProperties);  }### Answer:
@Test public void getToClientConverter(){ final String targetMimeType = "application/repository.folder+json"; final FolderImpl resource = new FolderImpl(); final ToClientConverter expectedConverter = mock(ToClientConverter.class); doReturn(expectedConverter).when(resourceConverterProvider) .getToClientConverter(resource.getResourceType(), "folder"); final ToClientConverter toClientConverter = handler.getToClientConverter(resource, targetMimeType); assertSame(toClientConverter, expectedConverter); }