@Test
public void testGet() {

    // Create the resource to be tested
    Users resource = new Users();
    // Inject the user management service
    UserManagementService useradmin = mock(UserManagementService.class);
    when(useradmin.getUsers()).thenReturn(getUsersForUserManagement());
    resource.useradmin = useradmin;
    List<User> users = resource.get();
    assertThat(users).isNotEmpty();
}