IsLessThanMatcher extends AbstractSimpleComparableMatcher { @Override protected boolean matches(Comparable actual, Comparable pivot) { return actual != null && pivot != null && pivot.compareTo(actual) > 0; }    }
@Test(expectedExceptions = InvalidArgumentException.class, expectedExceptionsMessageRegExp = "Expected property to be comparable: xyz") public void testValueIsNotComparable() { new IsLessThanMatcher().matches(new ImmutableParameter("xyz", null, null, null), new Object(), new Object()); }
@Test public void testValuesAreEqual() { assertThat(new IsLessThanMatcher().matches(5, 5), is(false)); }
@Test public void testActualIsLessThanPivot() { assertThat(new IsLessThanMatcher().matches(1, 5), is(true)); }
@Test public void testActualIsGreaterThanPivot() { assertThat(new IsLessThanMatcher().matches(10, 5), is(false)); }
@Test public void testActualIsNull() { assertThat(new IsLessThanMatcher().matches(null, 5), is(false)); }
@Test public void testPivotIsNull() { assertThat(new IsLessThanMatcher().matches(5, null), is(false)); }