@Test
  public void testServiceNotSupportingGroups() throws IOException {
    UserPrincipalLookupService service = new UserLookupService(false);

    try {
      service.lookupPrincipalByGroupName("group");
      fail();
    } catch (UserPrincipalNotFoundException expected) {
      assertThat(expected.getName()).isEqualTo("group");
    }
  }
Tests for {@link UserLookupService}.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/UserLookupServiceTest.java