### Question:
LookupResourceConverter extends ResourceConverterImpl<ResourceLookup, ClientResourceLookup> { @Override protected ClientResourceLookup resourceSpecificFieldsToClient(ClientResourceLookup client, ResourceLookup serverObject, ToClientConversionOptions options) { final DateFormat dateTimeFormatter = getDateTimeFormat(); return client.setResourceType(toClientResourceType(serverObject.getResourceType())).setLastAccessTime(serverObject.getLastAccessTime() != null ? dateTimeFormatter.format(serverObject.getLastAccessTime()) : null); }  @Override ResourceDetails toServer(ClientResourceLookup clientObject, ResourceLookup resultToUpdate, ToServerConversionOptions options); @Override ResourceLookup toServer(ClientResourceLookup clientObject, ToServerConversionOptions options);  }### Answer:
@Test public void resourceSpecificFieldsToClient() { final ClientResourceLookup expectedResult = new ClientResourceLookup(); final ResourceLookupImpl serverObject = new ResourceLookupImpl(); serverObject.setURIString("/uri/string/to/avoid/exception"); final String serverResourceType = "serverResourceType"; final String clientResourceType = "clientResourceType"; serverObject.setResourceType(serverResourceType); final ToClientConversionOptions options = ToClientConversionOptions.getDefault(); when(converterMock.resourceSpecificFieldsToClient(expectedResult, serverObject, options)).thenCallRealMethod(); when(converterMock.toClientResourceType(serverResourceType)).thenReturn(clientResourceType); final ClientResourceLookup result = converterMock.resourceSpecificFieldsToClient(expectedResult, serverObject, options); assertSame(result, expectedResult); assertEquals(result.getResourceType(), clientResourceType); }