CurveSpecificationMatcher { public static CurveSpecificationMatcher named(String name, String... names) { return new Named(name, names); }  abstract boolean matches(CurveSpecification curveSpec); static CurveSpecificationMatcher named(String name, String... names); static CurveSpecificationMatcher nameLike(String pattern);  }
@Test public void named() { CurveSpecificationMatcher matcher = CurveSpecificationMatcher.named(SPEC_NAME1, SPEC_NAME2); assertTrue(matcher.matches(CURVE_SPEC1)); assertTrue(matcher.matches(CURVE_SPEC2)); assertFalse(matcher.matches(OTHER_SPEC)); }