### Question:
EqualityMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return value.equals(target); } EqualityMatcher(Object value); boolean matches(T target); @Override String toString();  }### Answer:
@Test public void testMatch() throws Exception { Object target = new Object(); assertThat(new EqualityMatcher<Object>(target).matches(target), is(true)); }
@Test public void testNoMatch() throws Exception { assertThat(new EqualityMatcher<Object>(new Object()).matches(new Object()), is(false)); }