ExtRAResponse resp = (ExtRAResponse) submessagesresp.getSubMessages().iterator().next();
assertTrue("Wrong Request ID: " + resp.getRequestId(), resp.getRequestId() == requestId);
assertTrue("Edit user failed", resp.isSuccessful() == true);
// Try to retrieve keystore
requestId = random.nextLong();
KeyStoreRetrievalRequest keyStoreRetrievalRequest = new KeyStoreRetrievalRequest(requestId, username, password);
smgs = new SubMessages(null,null,null);
smgs.addSubMessage(keyStoreRetrievalRequest);
msghome.create(username+"ks", smgs);
msg = waitForUser(username+"ks");
assertNotNull("No response.", msg);