@Test
public void testIsWhitelisted() {

  assertFalse(Strings.isWhitelisted(null, ImmutableList.<String>of("")));
  assertFalse(Strings.isWhitelisted(" ", ImmutableList.<String>of(" ")));
  assertFalse(Strings.isWhitelisted("abc", null));
  assertFalse(Strings.isWhitelisted("abc", ImmutableList.<String>of()));
  assertTrue(Strings.isWhitelisted("abc", ImmutableList.<String>of("abc", "def")));
  assertFalse(Strings.isWhitelisted("abc", ImmutableList.<String>of("def")));
}