### Question:
ResourceConverterImpl implements ResourceConverter<ResourceType, ClientType> { @Override public ResourceType toServer(ClientType clientObject, ToServerConversionOptions options) throws IllegalParameterValueException, MandatoryParameterNotFoundException { return toServer(clientObject, null, options); } 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 toServer() throws Exception { ClientResource expectedClientObject = new ClientFolder(); Resource expectedNewObject = new FolderImpl(); when(converter.toServer(expectedClientObject, null, null)).thenReturn(expectedNewObject); when(converter.toServer(expectedClientObject, null)).thenCallRealMethod(); final Resource resource = converter.toServer(expectedClientObject, null); assertSame(resource, expectedNewObject); }