agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestProcessorIT.java
/**
				 * @param invocation the invocation on the mock.
				 * @return the value to be returned
				 * @throws Throwable the throwable to be thrown
				 */
@param invocation the invocation on the mock.
@return the value to be returned
@throws Throwable the throwable to be thrown
@param invocation the invocation on the mock . @return the value to be returned @throws Throwable the throwable to be thrown
@Override
				public Object answer(InvocationOnMock invocation) throws Throwable {
					if (invocation.getMethod().getName().equals("isSoftwareInvokableByUser")) {
						return true;
					} else if (invocation.getMethod().getName().equals("getInternalUsername")) {
						return null;
					} else if (invocation.getMethod().getName().equals("getParameterProcessor")) {
						return parameterProcessor;
					} else if (invocation.getMethod().getName().equals("getInputProcessor")) {
						return inputProcessor;
					} else if (invocation.getMethod().getName().equals("checkExecutionSystemLogin")) {
						return true;
					} else if (invocation.getMethod().getName().equals("checkExecutionSystemStorage")) {
						return true;
					} else if (invocation.getMethod().getName().equals("getUsername")) {
						return TEST_OWNER;
					} else {
						return invocation.callRealMethod();
					}
				}
@ Override public Object answer ( InvocationOnMock invocation ) throws Throwable { if ( invocation . getMethod ( ) . getName ( ) . equals ( "isSoftwareInvokableByUser" ) ) { return true ; } else if ( invocation . getMethod ( ) . getName ( ) . equals ( "getInternalUsername" ) ) { return null ; } else if ( invocation . getMethod ( ) . getName ( ) . equals ( "getParameterProcessor" ) ) { return parameterProcessor ; } else if ( invocation . getMethod ( ) . getName ( ) . equals ( "getInputProcessor" ) ) { return inputProcessor ; } else if ( invocation . getMethod ( ) . getName ( ) . equals ( "checkExecutionSystemLogin" ) ) { return true ; } else if ( invocation . getMethod ( ) . getName ( ) . equals ( "checkExecutionSystemStorage" ) ) { return true ; } else if ( invocation . getMethod ( ) . getName ( ) . equals ( "getUsername" ) ) { return TEST_OWNER ; } else { return invocation . callRealMethod ( ) ; } }
@param invocation the invocation on the mock.
@param invocation the invocation on the mock .
//					} else if (invocation.getMethod().getName().equals("getNotificationProcessor")) { //						return notificationProcessor;