### Question:
ContractCheckingIndexProxy extends DelegatingIndexProxy { @Override public void force( IOLimiter ioLimiter ) throws IOException { if ( tryOpenCall( "force" ) ) { try { super.force( ioLimiter ); } finally { closeCall(); } } } ContractCheckingIndexProxy( IndexProxy delegate, boolean started ); @Override void start(); @Override IndexUpdater newUpdater( IndexUpdateMode mode ); @Override void force( IOLimiter ioLimiter ); @Override void drop(); @Override void close();  }### Answer:
@Test public void shouldNotForceBeforeCreate() throws IOException { IndexProxy inner = mockIndexProxy(); IndexProxy outer = newContractCheckingIndexProxy( inner ); outer.force( IOLimiter.UNLIMITED ); verifyNoMoreInteractions( inner ); }