### Question:
RoleConverter implements ToServerConverter<ClientRole, Role, ToServerConversionOptions>, ToClientConverter<Role, ClientRole, ToClientConversionOptions> { @Override public Role toServer(ClientRole clientObject, ToServerConversionOptions options) throws IllegalParameterValueException, MandatoryParameterNotFoundException { return toServer(clientObject, new RoleImpl(), null); }  @Override ClientRole toClient(Role serverObject, ToClientConversionOptions options); @Override String getClientResourceType(); @Override Role toServer(ClientRole clientObject, ToServerConversionOptions options); @Override Role toServer(ClientRole clientObject, Role resultToUpdate, ToServerConversionOptions options); @Override String getServerResourceType();  }### Answer:
@Test public void testToServer() throws Exception { Role converted = converter.toServer(client, null); assertEquals(converted.getRoleName(), client.getName()); assertEquals(converted.getTenantId(), client.getTenantId()); assertEquals(converted.isExternallyDefined(), client.isExternallyDefined()); }
@Test public void testToServer_update() throws Exception { Role converted = converter.toServer(client, server, null); assertEquals(converted, server); assertEquals(converted.getRoleName(), client.getName()); assertEquals(converted.getTenantId(), client.getTenantId()); assertEquals(converted.isExternallyDefined(), client.isExternallyDefined()); }