@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 getRepositoryNullTest() {
    metaInject.getRepository();
    //If repository is not set in the base step (Remote Executions/Scheduling) Need to get the repository from TransMeta
    verify( metaInject, times( 1 ) ).getTransMeta();
  }