@Test
 public void baseUtilsAreInitialized() throws JFException {
   assertNotNull(testStrategy.getStrategyUtil());
   assertNotNull(testStrategy.getOrderUtil());
   assertNotNull(testStrategy.getPositionUtil());
   assertNotNull(testStrategy.getCalculationUtil());
 }
  @Before
  public void setUp() throws JFException {
    testStrategy = new TestStrategy();

    testStrategy.onStart(contextMock);
    baseUtilsAreInitialized();

    testStrategy.setStrategyUtil(strategyUtilMock);
    testStrategy.onAccount(accountMock);
  }
 @Test
 public void onMessageCallsStrategyUtil() throws JFException {
   final IMessage message =
       mockForIMessage(buyOrderEURUSD, IMessage.Type.CONNECTION_STATUS, Sets.newHashSet());
   testStrategy.onMessage(message);
   verify(strategyUtilMock).onMessage(message);
 }
 @Test
 public void onTickCallsStrategyUtil() throws JFException {
   testStrategy.onTick(instrumentEURUSD, tickEURUSD);
   verify(strategyUtilMock).onTick(instrumentEURUSD, tickEURUSD);
 }
 @Test
 public void onStopCallsStrategyUtil() throws JFException {
   testStrategy.onStop();
   verify(strategyUtilMock).onStop();
 }
 @Test
 public void onBarCallsStrategyUtil() throws JFException {
   testStrategy.onBar(instrumentEURUSD, barQuotePeriod, askBarEURUSD, bidBarEURUSD);
   verify(strategyUtilMock).onBar(instrumentEURUSD, barQuotePeriod, askBarEURUSD, bidBarEURUSD);
 }