public void kenaiLogsInWithGoodCredentials()
throws Exception
{
createKenaiBaseRoleIfNeeded();
// see KenaiAuthcBehaviour: "authenticated" users are those having password = username + "123"
final NexusClient kenaiAuthenticatedClient = createNexusClient(nexus(), "kenaiuser", "kenaiuser123");
final Roles kenaiAuthenticatedRoles = kenaiAuthenticatedClient.getSubsystem(Roles.class);
final Collection<Role> existingRoles = kenaiAuthenticatedRoles.get();
// most likely redundant, as it all this above would not work, a NexusClientResponseException 401 would be
// thrown at kenaiAuthenticatedRoles.get();
assertThat(existingRoles, not(empty()));
}