### Question:
RelationshipExporter extends StatementApi { public void write(String relationshipType) { write(relationshipType, Optional.empty(), null); } private  RelationshipExporter(
        SecureTransaction tx,
        Graph graph,
        RelationshipPropertyTranslator propertyTranslator,
        TerminationFlag terminationFlag,
        ProgressLogger progressLogger
    ); static RelationshipExporter.Builder of(GraphDatabaseService db, Graph graph, TerminationFlag terminationFlag); static RelationshipExporter.Builder of(SecureTransaction tx, Graph graph, TerminationFlag terminationFlag); void write(String relationshipType); void write(String relationshipType, String propertyKey); void write(String relationshipType, Optional<String> maybePropertyKey); void write(
        String relationshipType,
        Optional<String> maybePropertyKey,
        @Nullable RelationshipWithPropertyConsumer afterWriteConsumer
    );  }### Answer:
@Test void exportRelationships() { RelationshipExporter exporter = setupExportTest( true); exporter.write("FOOBAR", "weight"); validateWrittenGraph(); }
@Test void exportRelationshipsWithoutProperties() { RelationshipExporter exporter = setupExportTest( false); exporter.write("FOOBAR"); validateWrittenGraphWithoutProperties(); runQueryWithRowConsumer( db, "MATCH ()-[r:FOOBAR]->() RETURN sum(size(keys(r))) AS keyCount", Collections.emptyMap(), row -> assertEquals(0L, row.getNumber("keyCount").longValue()) ); }