AddShippingTrackingInfoAction extends AbstractProceduralAction<ConsignmentProcessModel> { @Override public void executeAction(final ConsignmentProcessModel consignmentProcessModel) throws RetryLaterException, Exception { addShippingTrackingInfoToConsignmentStrategy.addTrackingInfo(consignmentProcessModel.getConsignment()); } AddShippingTrackingInfoAction(final AddShippingTrackingInfoToConsignmentStrategy addShippingTrackingInfoToConsignmentStrategy); @Override void executeAction(final ConsignmentProcessModel consignmentProcessModel);  }
@Test public void executeAction_ShouldCallAddShippingTrackingInfoToConsignmentStrategy() throws Exception { when(consignmentProcessModelMock.getConsignment()).thenReturn(consignmentModelMock); testObj.executeAction(consignmentProcessModelMock); verify(addShippingTrackingInfoToConsignmentStrategyMock).addTrackingInfo(consignmentModelMock); }