### Question:
DetachedRelationshipDescriptionImpl extends BaseRelationshipDescription<DetachedPropertiesDescription> implements DetachedRelationshipDescription { @Override public String toString() { return getType() + "#" + getDirection() + "#" + getPropertiesDescription().toString(); } DetachedRelationshipDescriptionImpl(String relationshipType, Direction direction, DetachedPropertiesDescription propertiesDescription); @Override DetachedRelationshipDescription with(String propertyKey, Predicate predicate); @Override String toString();  }### Answer:
@Test public void verifySerialization() { try (Transaction tx = database.beginTx()) { RelationshipDescription description = literal(database.getRelationshipById(0), database.getNodeById(0)); String serialized = Serializer.toString(description, "testPrefix"); RelationshipDescription deserialized = Serializer.fromString(serialized, "testPrefix"); assertEquals(deserialized, description); } }