public ExecuteJobServlet() {
  }
@Test
  public void testExecuteJobServletTest()
    throws ServletException, IOException, KettleException {
    try ( MockedStatic<Encr> encrMockedStatic = mockStatic( Encr.class ) ) {
      encrMockedStatic.when( () -> Encr.decryptPasswordOptionallyEncrypted( eq( PASSWORD ) ) ).thenReturn( PASSWORD );
      doReturn( ExecuteJobServlet.CONTEXT_PATH ).when( mockHttpServletRequest ).getContextPath();
      doReturn( REPOSITORY_NAME ).when( mockHttpServletRequest ).getParameter( "rep" );
      doReturn( AUTHORIZED_USER ).when( mockHttpServletRequest ).getParameter( "user" );
      doReturn( PASSWORD ).when( mockHttpServletRequest ).getParameter( "pass" );
      doReturn( JOB_NAME ).when( mockHttpServletRequest ).getParameter( "job" );
      doReturn( LEVEL ).when( mockHttpServletRequest ).getParameter( "level" );

      doReturn( repository ).when( spyExecuteJobServlet ).openRepository( REPOSITORY_NAME, AUTHORIZED_USER, PASSWORD );

      JobMeta jobMeta = buildJobMeta();

      RepositoryDirectoryInterface repositoryDirectoryInterface = mock( RepositoryDirectoryInterface.class );
      doReturn( repositoryDirectoryInterface ).when( repository ).loadRepositoryDirectoryTree();
      doReturn( mock( RepositoryDirectoryInterface.class ) ).when( repositoryDirectoryInterface )
        .findDirectory( anyString() );
      doReturn( mock( ObjectId.class ) ).when( repository )
        .getJobId( anyString(), any( RepositoryDirectoryInterface.class ) );
      doReturn( jobMeta ).when( repository ).loadJob( any( ObjectId.class ), nullable( String.class ) );
      doReturn( Collections.emptyEnumeration() ).when( mockHttpServletRequest ).getParameterNames();

      StringWriter out = mockWriter();
      spyExecuteJobServlet.doGet( mockHttpServletRequest, spyHttpServletResponse );

      assertTrue( out.toString().contains( WebResult.STRING_OK ) );
      assertTrue( out.toString().contains( "Job started" ) );
    }
  }