public Result execute( final Params params ) throws Throwable {
    return execute( params, null );
  }
@Test
  public void testExecuteWithInvalidRepository() {
    try ( MockedStatic<BaseMessages> baseMessagesMockedStatic = mockStatic( BaseMessages.class ) ) {
      // Create Mock Objects
      Params params = mock( Params.class );
      PanCommandExecutor panCommandExecutor = new PanCommandExecutor( Kitchen.class );

      // Mock returns
      when( params.getRepoName() ).thenReturn( "NoExistingRepository" );
      baseMessagesMockedStatic.when( () -> BaseMessages.getString( any( Class.class ), anyString(), any() ) ).thenReturn( "" );

      try {
        Result result = panCommandExecutor.execute( params, null );
        Assert.assertEquals( CommandExecutorCodes.Pan.COULD_NOT_LOAD_TRANS.getCode(), result.getExitStatus() );
      } catch ( Throwable throwable ) {
        Assert.fail();
      }
    }
  }