### Question:
RegistrationService extends EscrowAgentService { @Override public TreeMap<String, String> getParameters() { TreeMap<String, String> parameters = new TreeMap<>(); parameters.put("data_subject_id", super.getClient().getDataSubjectId()); parameters.put("data_controller_id", super.getClient() .getDataControllerId()); parameters.put("auth_app_id", super.getClient().getAppId()); return parameters; } RegistrationService(final Client client,
            final EscrowAgent escrowAgent, final SecureConnection con); @Override TreeMap<String, String> getParameters(); ClientCredentials register();  }### Answer:
@Test public void testGetParameters() throws IOException { TreeMap<String, String> parameters = service.getParameters(); Assert.assertEquals(parameters.get("data_subject_id"), client.getDataSubjectId()); Assert.assertEquals(parameters.get("data_controller_id"), client.getDataControllerId()); Assert.assertEquals(parameters.get("auth_app_id"), client.getAppId()); }
@Test public void testSignRequest() throws UnsupportedEncodingException { SignatureBase signatureBase = new SignatureBase(service.getParameters(), "url", "POST"); Assert.assertNotNull(service.signRequest(signatureBase, "key")); }