@Override
  public Repository getRepository() {
    //Repository may be null if executing remotely in Pentaho Server
    Repository repository = super.getRepository();
    return repository != null ? repository : getTransMeta().getRepository();
  }
@Test
  public void getRepositoryNotNullTest() {
    metaInject.setRepository( repository );
    //If repository is set in the base step (Local Execution) TransMeta will not be required to get the repository
    metaInject.getRepository();
    verify( metaInject, times( 0 ) ).getTransMeta();
  }