@Test
public void testInvalidRoles() {

  final User u = new User(null, "name", "pw", Collections.singletonList("unknown"));
  assertThrows(BadRequestException.class, () -> this.userResource.newUser(u));
}