### Question:
CountsTracker extends AbstractKeyValueStore<CountsKey> implements CountsVisitor.Visitable, CountsAccessor { static int compare( FileVersion lhs, FileVersion rhs ) { int cmp = Long.compare( lhs.txId, rhs.txId ); if ( cmp == 0 ) { cmp = Long.compare( lhs.minorVersion, rhs.minorVersion ); } return cmp; } CountsTracker( final LogProvider logProvider, FileSystemAbstraction fs, PageCache pages, Config config,
            DatabaseLayout databaseLayout, VersionContextSupplier versionContextSupplier );  CountsTracker( final LogProvider logProvider, FileSystemAbstraction fs, PageCache pages, Config config,
                          DatabaseLayout databaseLayout, SystemNanoClock clock, VersionContextSupplier versionContextSupplier ); CountsTracker setInitializer( final DataInitializer<Updater> initializer ); long rotate( long txId ); long txId(); long minorVersion(); Register.DoubleLongRegister get( CountsKey key, Register.DoubleLongRegister target ); @Override Register.DoubleLongRegister nodeCount( int labelId, final Register.DoubleLongRegister target ); @Override Register.DoubleLongRegister relationshipCount( int startLabelId, int typeId, int endLabelId,
                                                          Register.DoubleLongRegister target ); @Override Register.DoubleLongRegister indexUpdatesAndSize( long indexId, Register.DoubleLongRegister target ); @Override Register.DoubleLongRegister indexSample( long indexId, Register.DoubleLongRegister target ); Optional<CountsAccessor.Updater> apply( long txId ); CountsAccessor.IndexStatsUpdater updateIndexCounts(); CountsAccessor.Updater reset( long txId ); @Override void accept( final CountsVisitor visitor ); static final String TYPE_DESCRIPTOR; }### Answer:
@Test public void shouldOrderStoreByTxIdInHeaderThenMinorVersion() { FileVersion version = new FileVersion( 16, 5 ); assertTrue( CountsTracker.compare( version, new FileVersion( 5, 5 ) ) > 0 ); assertEquals( 0, CountsTracker.compare( version, new FileVersion( 16, 5 ) ) ); assertTrue( CountsTracker.compare( version, new FileVersion( 30, 1 ) ) < 0 ); assertTrue( CountsTracker.compare( version, new FileVersion( 16, 1 ) ) > 0 ); assertTrue( CountsTracker.compare( version, new FileVersion( 16, 7 ) ) < 0 ); }