### Question:
TransactionApplierFacade extends TransactionApplier.Adapter { @Override public boolean visit( StorageCommand element ) throws IOException { for ( TransactionApplier applier : appliers ) { if ( ((Command)element).handle( applier ) ) { return true; } } return false; } TransactionApplierFacade( TransactionApplier... appliers ); @Override void close(); @Override boolean visit( StorageCommand element ); @Override boolean visitNodeCommand( Command.NodeCommand command ); @Override boolean visitRelationshipCommand( Command.RelationshipCommand command ); @Override boolean visitPropertyCommand( Command.PropertyCommand command ); @Override boolean visitRelationshipGroupCommand( Command.RelationshipGroupCommand command ); @Override boolean visitRelationshipTypeTokenCommand( Command.RelationshipTypeTokenCommand command ); @Override boolean visitLabelTokenCommand( Command.LabelTokenCommand command ); @Override boolean visitPropertyKeyTokenCommand( Command.PropertyKeyTokenCommand command ); @Override boolean visitSchemaRuleCommand( Command.SchemaRuleCommand command ); @Override boolean visitNeoStoreCommand( Command.NeoStoreCommand command ); @Override boolean visitIndexAddNodeCommand( IndexCommand.AddNodeCommand command ); @Override boolean visitIndexAddRelationshipCommand( IndexCommand.AddRelationshipCommand command ); @Override boolean visitIndexRemoveCommand( IndexCommand.RemoveCommand command ); @Override boolean visitIndexDeleteCommand( IndexCommand.DeleteCommand command ); @Override boolean visitIndexCreateCommand( IndexCommand.CreateCommand command ); @Override boolean visitIndexDefineCommand( IndexDefineCommand command ); @Override boolean visitNodeCountsCommand( Command.NodeCountsCommand command ); @Override boolean visitRelationshipCountsCommand( Command.RelationshipCountsCommand command );  }### Answer:
@Test public void testVisit() throws Exception { Command cmd = mock( Command.class ); boolean result = facade.visit( cmd ); InOrder inOrder = inOrder( cmd ); inOrder.verify( cmd ).handle( txApplier1 ); inOrder.verify( cmd ).handle( txApplier2 ); inOrder.verify( cmd ).handle( txApplier3 ); inOrder.verifyNoMoreInteractions(); assertFalse( result ); }