@Test
public void shouldApplyRelationshipGroupCommandToTheStoreInRecovery() throws Exception
{
final BatchTransactionApplier applier = newApplier( true );
final RelationshipGroupRecord before = new RelationshipGroupRecord( 42, 1 );
final RelationshipGroupRecord after = new RelationshipGroupRecord( 42, 1, 2, 3, 4, 5, 6, true );
final Command command = new Command.RelationshipGroupCommand( before, after );
boolean result = apply( applier, command::handle, transactionToApply );
assertFalse( result );
verify( relationshipGroupStore, times( 1 ) ).setHighestPossibleIdInUse( after.getId() );
verify( relationshipGroupStore, times( 1 ) ).updateRecord( after );
}