### Question:
DumpCountsStore implements CountsVisitor, MetadataVisitor, UnknownKey.Visitor { @Override public void visitRelationshipCount( int startLabelId, int typeId, int endLabelId, long count ) { out.printf( "\tRelationship[(%s)-%s->(%s)]:\t%d%n", labels( new int[]{startLabelId} ), relationshipType( typeId ), labels( new int[]{endLabelId} ), count ); } DumpCountsStore( PrintStream out );   DumpCountsStore( PrintStream out, NeoStores neoStores, SchemaStorage schemaStorage ); private  DumpCountsStore( PrintStream out, Map<Long,IndexDescriptor> indexes, List<NamedToken> labels,
                             List<NamedToken> relationshipTypes, List<NamedToken> propertyKeys ); static void main( String... args ); static void dumpCountsStore( FileSystemAbstraction fs, File path, PrintStream out ); @Override void visitMetadata( File file, Headers headers, int entryCount ); @Override void visitNodeCount( int labelId, long count ); @Override void visitRelationshipCount( int startLabelId, int typeId, int endLabelId, long count ); @Override void visitIndexStatistics( long indexId, long updates, long size ); @Override void visitIndexSample( long indexId, long unique, long size ); @Override boolean visitUnknownKey( ReadableBuffer key, ReadableBuffer value );  }### Answer:
@Test public void dumpRelationshipCount() { DumpCountsStore countsStore = getCountStore(); countsStore.visitRelationshipCount( START_LABEL_ID, TYPE_ID, END_LABEL_ID, 5 ); assertThat( suppressOutput.getOutputVoice().toString(), containsString( "\tRelationship[(:startLabel [labelId=1])-[:testType [typeId=1]]->" + "(:endLabel [labelId=2])]:\t5" ) ); }