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 BatchQueue answer(InvocationOnMock invocation) throws Throwable {
					Optional<BatchQueue> matchineQueue = bq.stream().filter(q -> q.getName().equals(invocation.getArgumentAt(0, String.class))).findFirst();
					return matchineQueue.orElse(null);
				}
@ Override public BatchQueue answer ( InvocationOnMock invocation ) throws Throwable { Optional < BatchQueue > matchineQueue = bq . stream ( ) . filter ( q -> q . getName ( ) . equals ( invocation . getArgumentAt ( 0 , String . class ) ) ) . findFirst ( ) ; return matchineQueue . orElse ( null ) ; }
@param invocation the invocation on the mock.
@param invocation the invocation on the mock .