### Question:
TripleMatcherImpl implements TripleMatcher { @Override public boolean matches(Triple t) { return objectUri != null && t.getPredicate().equals(predicateUri) && t.getObject().equals(objectUri) ; } TripleMatcherImpl(String line); @Override String toString(); String getExpression(); @Override boolean matches(Triple t);  }### Answer:
@Test public void testMatches() throws Exception { final TripleMatcherImpl m = new TripleMatcherImpl("FOO URI BAR"); assertTrue(m.matches(TripleUtil.uriTriple("me","FOO","BAR"))); assertTrue(m.matches(TripleUtil.uriTriple("you","FOO","BAR"))); assertFalse(m.matches(TripleUtil.uriTriple("me","wii","BAR"))); assertFalse(m.matches(TripleUtil.uriTriple("me","FOO","wii"))); }