### Question:
ProctorRuleFunctions { public static boolean contains(final Collection c, final Object element) { if (isIntegerNumber(element)) { final long elementValue = toLong(element); for (final Object x : c) { if (isIntegerNumber(x)) { final long value = toLong(x); if (elementValue == value) { return true; } } } return false; } return c.contains(element); }  static boolean contains(final Collection c, final Object element); static boolean matches(final String value, final String regex); static long now(); static ReleaseVersion version(final String versionString); static boolean inRange(final T value, final T closedLowerBound, final T openUpperBound); static boolean versionInRange(final ReleaseVersion version, final String startInclusive, final String endExclusive);  }### Answer:
@Test public void testContains() { assertTrue(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), 1)); assertTrue(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), 1L)); assertTrue(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), (byte)1)); assertTrue(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), (short)1)); assertTrue(ProctorRuleFunctions.contains(Arrays.asList(1L, 2L, 3L), 1L)); assertTrue(ProctorRuleFunctions.contains(Arrays.asList(1L, 2L, 3L), 1)); assertFalse(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), -1)); assertFalse(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), -1L)); assertFalse(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), "1")); assertFalse(ProctorRuleFunctions.contains(Arrays.asList(1, 2, 3), null)); assertFalse(ProctorRuleFunctions.contains(Collections.emptyList(), 1)); }