@Test
public void testMatches() {

    try {
        patterns.matches(null);
        fail("Expected IllegalArgumentException");
    } catch (IllegalArgumentException e) {
        // expected result
    }
}