@Override public void callBeforeLog() {
    if ( parent != null ) {
      parent.callBeforeLog();
    }
  }
@Test
  public void testJobCallBeforeLog() {
    Trans trans = new Trans();
    LoggingObjectInterface parent = mock( LoggingObjectInterface.class );
    setInternalState( trans, "parent", parent );

    trans.callBeforeLog();
    verify( parent, times( 1 ) ).callBeforeLog();
  }