### Question:
ResourceConverterProviderImpl implements ResourceConverterProvider { public ToClientConverter<? super Resource, ? extends ClientResource, ToClientConversionOptions> getToClientConverter(String serverType) throws IllegalParameterValueException { prepareConverters(); final ToClientConverter<? super Resource, ? extends ClientResource, ToClientConversionOptions> toClientConverter = toClientConverters.get(serverType); if(toClientConverter == null){ throw new IllegalParameterValueException("type", serverType); } return toClientConverter; }  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_getToClientConverter_string() throws Exception { assertSame(provider.getToClientConverter(ResourceLookup.class.getName()), lookupResourceConverter); assertSame(provider.getToClientConverter(Folder.class.getName()), testFolderConverter); IllegalParameterValueException exception = null; try{ provider.getToClientConverter("unknownType"); }catch (IllegalParameterValueException ex){ exception = ex; } assertNotNull(exception); }
@Test public void prepareConverters_getToClientConverter_object() throws Exception { assertSame(provider.getToClientConverter(new ResourceLookupImpl()), lookupResourceConverter); assertSame(provider.getToClientConverter(new FolderImpl()), testFolderConverter); }