### Question:
FilterUtility { public static boolean matches(String nullableValue, String nullableRegex) { if (nullableValue == null) { return nullableRegex == null; } return nullableRegex == null || nullableValue.matches(nullableRegex); }  static boolean matches(String nullableValue, String nullableRegex); static boolean matchesInt(Integer value, Integer required); static boolean matchesSpecification(Specification specification, SpecificationQuery specQuery); static boolean matchesSchemaKey(SchemaKey key, SchemaKeyQuery schemaKeyQuery);  }### Answer:
@Test public void matches() { assertTrue(FilterUtility.matches(null, null)); assertTrue(FilterUtility.matches(MATCH, null)); assertTrue(FilterUtility.matches(MATCH, REGEX)); assertFalse(FilterUtility.matches(FAIL, REGEX)); }