### Question:
PermissionConverter implements ToClientConverter<ObjectPermission, RepositoryPermission, ToClientConversionOptions>, ToServerConverter<RepositoryPermission, ObjectPermission, ToServerConversionOptions> { public ObjectPermission toServer(RepositoryPermission clientObject, ToServerConversionOptions options) throws IllegalParameterValueException, MandatoryParameterNotFoundException { return toServer(clientObject, new ObjectPermissionImpl(), null); }  RepositoryPermission toClient(ObjectPermission serverObject, ToClientConversionOptions options); String getClientResourceType(); ObjectPermission toServer(RepositoryPermission clientObject, ToServerConversionOptions options); ObjectPermission toServer(RepositoryPermission clientObject, ObjectPermission resultToUpdate, ToServerConversionOptions options); String getServerResourceType();  }### Answer:
@Test public void testToServer() throws Exception { ObjectPermission converted = converter.toServer(client, null); assertEquals(converted.getPermissionMask(), (int)client.getMask()); assertEquals(converted.getPermissionRecipient(), userIdentity); assertEquals(converted.getURI(), repoUri); }
@Test public void testToServer_slash() throws Exception { client.setUri("public"); ObjectPermission converted = converter.toServer(client, null); assertEquals(converted.getPermissionMask(), (int)client.getMask()); assertEquals(converted.getPermissionRecipient(), userIdentity); assertEquals(converted.getURI(), repoUri); }