### Question:
ContentResourceConverter extends ResourceConverterImpl<ContentResource, ClientFile> { @Override protected ClientFile resourceSpecificFieldsToClient(ClientFile client, ContentResource serverObject, ToClientConversionOptions options) { if (ContentResource.TYPE_UNSPECIFIED.equals(serverObject.getFileType())){ client.setType(ClientFile.FileType.unspecified); } else { client.setType(ClientFile.FileType.valueOf(serverObject.getFileType())); } return client; }    }### Answer:
@Test public void resourceSpecificFieldsToClient(){ final String expectedFileType = ContentResource.TYPE_ODS; final ClientFile clientObject = new ClientFile(); final ContentResource serverObject = new ContentResourceImpl(); serverObject.setFileType(expectedFileType); serverObject.setData(data); final ClientFile result = converter.resourceSpecificFieldsToClient(clientObject, serverObject, null); assertNotNull(result); assertEquals(result.getType().name(), expectedFileType); assertEquals(result.getContent(), null); }