### Question:
ResourceConverterProviderImpl implements ResourceConverterProvider { public ToServerConverter<? super ClientResource, ? extends Resource, ToServerConversionOptions> getToServerConverter(String serverType, String clientType){ prepareConverters(); return (ToServerConverter<? super ClientResource, ? extends Resource, ToServerConversionOptions>) resourceConverters.get(getCombinedConverterKey(serverType, clientType)); }  ToClientConverter<? super Resource, ? extends ClientResource, ToClientConversionOptions> getToClientConverter(String serverType); ToClientConverter<? super Resource, ? extends ClientResource, ToClientConversionOptions> getToClientConverter(String serverType, String clientType); ToServerConverter<? super ClientResource, ? extends Resource, ToServerConversionOptions> getToServerConverter(String serverType, String clientType); @Override ToClientConverter<? super Resource, ? extends ClientResource, ToClientConversionOptions> getToClientConverter(Resource serverObject); @Override ToServerConverter<? super ClientResource, ? extends Resource, ToServerConversionOptions> getToServerConverter(ClientResource clientObject); ToServerConverter<? super ClientResource, ? extends Resource, ToServerConversionOptions> getToServerConverter(String clientType); @Override Class<? extends ClientResource> getClientTypeClass(String clientType); @PostConstruct void initialize();  }### Answer:
@Test public void prepareConverters_getToServerConverter_string() throws Exception { assertSame(provider.getToServerConverter(ClientTypeUtility.extractClientType(ClientResourceLookup.class)), lookupResourceConverter); assertSame(provider.getToServerConverter(ClientTypeUtility.extractClientType(TestClientFolder.class)), testFolderConverter); IllegalParameterValueException exception = null; try{ provider.getToServerConverter("unknownType"); }catch (IllegalParameterValueException ex){ exception = ex; } assertNotNull(exception); }
@Test public void prepareConverters_getToServerConverter_object() throws Exception { assertSame(provider.getToServerConverter(new ClientResourceLookup()), lookupResourceConverter); }
@Test public void prepareConverters_getToServerConverter_file() throws Exception { assertSame(provider.getToServerConverter(new ClientFile()), binaryDataResourceConverter); }