### Question:
ResourceConverterImpl implements ResourceConverter<ResourceType, ClientType> { @SuppressWarnings("unchecked") public Class<ClientType> getClientTypeClass() { return clientTypeHelper.getClientClass(); } ResourceConverterImpl(); String getServerResourceType(); @Override ResourceType toServer(ClientType clientObject, ToServerConversionOptions options); @Override ResourceType toServer(ClientType clientObject, ResourceType resultToUpdate, ToServerConversionOptions options); @Override ClientType toClient(ResourceType serverObject, ToClientConversionOptions options); @SuppressWarnings("unchecked") Class<ClientType> getClientTypeClass(); String getClientResourceType();  }### Answer:
@Test public void getClientTypeClass_rawConverter() { final ResourceConverterImpl resourceConverter = new ResourceConverterImpl() { @Override protected ClientResource resourceSpecificFieldsToClient(ClientResource client, Resource serverObject, ToClientConversionOptions options) { return client; } @Override protected Resource resourceSpecificFieldsToServer(ClientResource clientObject, Resource resultToUpdate, List list, ToServerConversionOptions options) throws IllegalParameterValueException, MandatoryParameterNotFoundException { return resultToUpdate; } }; IllegalStateException exception = null; try { resourceConverter.getClientTypeClass(); } catch (IllegalStateException ex) { exception = ex; } assertNotNull(exception); }
@Test public void getClientTypeClass() { final ResourceConverterImpl resourceConverter = new ResourceConverterImpl<Folder, ClientFolder>() { @Override protected Folder resourceSpecificFieldsToServer(ClientFolder clientObject, Folder resultToUpdate, List<Exception> exceptions, ToServerConversionOptions options) throws IllegalParameterValueException, MandatoryParameterNotFoundException { return resultToUpdate; } @Override protected ClientFolder resourceSpecificFieldsToClient(ClientFolder client, Folder serverObject, ToClientConversionOptions options) { return client; } }; final Class<?> clientTypeClass = resourceConverter.getClientTypeClass(); assertTrue(clientTypeClass == ClientFolder.class); }