@Override
protected void onResponse(ClientResponse response) {
assertThat(response.getStatus(), is(200));
assertJaxbUnmarshal(response, Account.class);
Account account = jaxbUnmarshal(response, Account.class);
assertThat(account.getUsername(), is("admin"));
assertThat(account.getPasswordHash(),
is("Eyox7xbNQ09MkIfRyH+rjg=="));
assertThat(account.getEmail(), is("root@localhost"));
assertThat(account.getApiKey(),
is("b6d7044e9ee3b2447c28fb7c50d86d98"));
assertThat(account.getRoles().size(), is(1)); // 1 roles
}
}.run();
}