MemTriple implements Triple, MemResource { @Override public String stringValue() { StringBuilder sb = new StringBuilder(256); sb.append("<<"); sb.append(getSubject()); sb.append(" "); sb.append(getPredicate()); sb.append(" "); sb.append(getObject()); sb.append(">>"); return sb.toString(); } MemTriple(Object creator, MemResource subject, MemIRI predicate, MemValue object); @Override String stringValue(); @Override String toString(); @Override Object getCreator(); @Override boolean hasStatements(); @Override MemStatementList getObjectStatementList(); @Override int getObjectStatementCount(); @Override void addObjectStatement(MemStatement st); @Override void removeObjectStatement(MemStatement st); @Override void cleanSnapshotsFromObjectStatements(int currentSnapshot); @Override MemStatementList getSubjectStatementList(); @Override int getSubjectStatementCount(); @Override void addSubjectStatement(MemStatement st); @Override void removeSubjectStatement(MemStatement st); @Override void cleanSnapshotsFromSubjectStatements(int currentSnapshot); @Override MemStatementList getContextStatementList(); @Override int getContextStatementCount(); @Override void addContextStatement(MemStatement st); @Override void removeContextStatement(MemStatement st); @Override void cleanSnapshotsFromContextStatements(int currentSnapshot); @Override Resource getSubject(); @Override IRI getPredicate(); @Override Value getObject(); @Override int hashCode(); @Override boolean equals(Object other);  }
@Test public void testStringValue() { assertThat(triple.stringValue()) .startsWith("<<") .contains(s1.stringValue()) .contains(p1.stringValue()) .contains(o1.stringValue()) .endsWith(">>"); }