AbstractUnaryMatcher implements Matcher { @Override public boolean isApplicableTo(Class<?> parameterType, Class<?>... propertiesTypes) { return propertiesTypes.length == 0; }  @Override final boolean matches(Parameter parameter, Object value, Object... properties); @Override boolean isApplicableTo(Class<?> parameterType, Class<?>... propertiesTypes);  }
@Test public void shouldNotApplyToNonEmptyListOfParameters() { final NotMatchingUnaryMatcher matcher = new NotMatchingUnaryMatcher(); assertFalse(matcher.isApplicableTo(String.class, String.class)); }