DefaultWorldpayOrderNotificationHandler implements WorldpayOrderNotificationHandler { @Override public void setNonDefectiveAndProcessed(final WorldpayOrderModificationModel modification) { modification.setProcessed(Boolean.TRUE); modification.setDefective(Boolean.FALSE); modelService.save(modification); }  @Override void setDefectiveModification(final WorldpayOrderModificationModel orderModificationModel, final Exception exception, final boolean processed); @Override void setDefectiveReason(final WorldpayOrderModificationModel orderModificationModel, DefectiveReason defectiveReason); @Override void setNonDefectiveAndProcessed(final WorldpayOrderModificationModel modification); @Required void setModelService(final ModelService modelService); @Required void setOrderModificationDao(final OrderModificationDao orderModificationDao);  }
@Test public void setNonDefectiveAndProcessed() { testObj.setNonDefectiveAndProcessed(orderModificationModelMock); verify(orderModificationModelMock).setProcessed(Boolean.TRUE); verify(orderModificationModelMock).setDefective(Boolean.FALSE); verify(modelServiceMock).save(orderModificationModelMock); }