RegisterRequest extends JsonSerializable implements Persistable { @Override public String getRequestId() { return getChallenge(); } RegisterRequest(String challenge, String appId); @Override String getRequestId(); static RegisterRequest fromJson(String json);  }
@Test public void testGetters() throws Exception { RegisterRequest registerRequest = new RegisterRequest(SERVER_CHALLENGE_REGISTER_BASE64, APP_ID_ENROLL); assertEquals(SERVER_CHALLENGE_REGISTER_BASE64, registerRequest.getChallenge()); assertEquals(APP_ID_ENROLL, registerRequest.getAppId()); assertNotNull(SERVER_CHALLENGE_REGISTER_BASE64, registerRequest.getRequestId()); }