DefaultWorldpayAuthorisationResultService implements WorldpayAuthorisationResultService { @Override public void setAuthoriseResultAsError(final AbstractResult target) { setSubscriptionAuthoriseResult(target, ERROR, GENERAL_SYSTEM_ERROR); }  @Override void setAuthoriseResultAsError(final AbstractResult target); @Override void setAuthoriseResultByTransactionStatus(final AbstractResult target, final AuthorisedStatus status, final String orderCode); @Override void setAuthorizeResultForAPM(final DirectAuthoriseServiceResponse response,
                                         final WorldpaySubscriptionAuthorizeResult result);  }
@Test public void testSetAuthoriseResultAsError() { testObj.setAuthoriseResultAsError(abstractResultMock); verify(abstractResultMock).setTransactionStatus(TransactionStatus.ERROR); verify(abstractResultMock).setTransactionStatusDetails(GENERAL_SYSTEM_ERROR); }