Objects { public static boolean in(Object obj, Object... array) { for (Object expected : array) { if (obj == expected) { return true; } } return false; }  static int hashCode(Object obj); static boolean equals(Object o1, Object o2); static boolean in(Object obj, Object... array);  }
@Test public void testIn() { assertTrue(Objects.in("b", "a", "b", "c")); assertFalse(Objects.in("x", "a", "b", "c")); }