public void delHop() {
    final TransMeta transMeta = (TransMeta) selectionObjectParent;
    final TransHopMeta transHopMeta = (TransHopMeta) selectionObject;
    delHop( transMeta, transHopMeta );
  }
@Test
  public void testDelHop() throws Exception {

    StepMetaInterface fromStepMetaInterface = Mockito.mock( StepMetaInterface.class );
    StepMeta fromStep = new StepMeta();
    fromStep.setStepMetaInterface( fromStepMetaInterface );

    StepMetaInterface toStepMetaInterface = Mockito.mock( StepMetaInterface.class );
    StepMeta toStep = new StepMeta();
    toStep.setStepMetaInterface( toStepMetaInterface );

    TransHopMeta transHopMeta = new TransHopMeta();
    transHopMeta.setFromStep( fromStep );
    transHopMeta.setToStep( toStep );

    TransMeta transMeta = Mockito.mock( TransMeta.class );

    spoon.delHop( transMeta, transHopMeta );
    Mockito.verify( fromStepMetaInterface, times( 1 ) ).cleanAfterHopFromRemove( toStep );
    Mockito.verify( toStepMetaInterface, times( 1 ) ).cleanAfterHopToRemove( fromStep );
  }