RequestBuilder { @Override public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof RequestBuilder ) ) { return false; } final RequestBuilder that = ( RequestBuilder ) o; if ( cmdArgs != null ? !cmdArgs.equals( that.cmdArgs ) : that.cmdArgs != null ) { return false; } if ( command != null ? !command.equals( that.command ) : that.command != null ) { return false; } if ( cwd != null ? !cwd.equals( that.cwd ) : that.cwd != null ) { return false; } if ( envVars != null ? !envVars.equals( that.envVars ) : that.envVars != null ) { return false; } if ( errRedirection != that.errRedirection ) { return false; } if ( outputRedirection != that.outputRedirection ) { return false; } if ( runAs != null ? !runAs.equals( that.runAs ) : that.runAs != null ) { return false; } if ( timeout != null ? !timeout.equals( that.timeout ) : that.timeout != null ) { return false; } return type == that.type; } RequestBuilder( @JsonProperty( value = "command" ) final String command,
                           @JsonProperty( value = "cwd" ) final String cwd,
                           @JsonProperty( value = "type" ) final RequestType type,
                           @JsonProperty( value = "outputRedirection" ) final OutputRedirection outputRedirection,
                           @JsonProperty( value = "errRedirection" ) final OutputRedirection errRedirection,
                           @JsonProperty( value = "timeout" ) final Integer timeout,
                           @JsonProperty( value = "runAs" ) final String runAs,
                           @JsonProperty( value = "cmdArgs" ) final List<String> cmdArgs,
                           @JsonProperty( value = "envVars" ) final Map<String, String> envVars,
                           @JsonProperty( value = "isDaemon" ) final int isDaemon );  RequestBuilder( String command ); Integer getTimeout(); RequestBuilder withCwd( String cwd ); RequestBuilder withType( RequestType type ); RequestBuilder withStdOutRedirection( OutputRedirection outputRedirection ); RequestBuilder withStdErrRedirection( OutputRedirection errRedirection ); RequestBuilder withTimeout( int timeout ); RequestBuilder withRunAs( String runAs ); RequestBuilder withCmdArgs( String... cmdArgs ); RequestBuilder withEnvVars( Map<String, String> envVars ); RequestBuilder daemon(); Request build( String id ); @Override boolean equals( final Object o ); @Override int hashCode();  }
@Test public void testEquals() throws Exception { requestBuilder.equals( requestBuilder ); }
@Test public void testEquals2() throws Exception { requestBuilder.equals( object ); }