@Test
public void stop() throws ExecutionPlanException {

    // Create two mocks
    SiddhiPlan siddhiPlanMock = mock(SiddhiPlan.class);
    when(siddhiPlanMock.getId()).thenReturn("testMockID");
    SiddhiPlan siddhiPlanMockTwo = mock(SiddhiPlan.class);
    when(siddhiPlanMockTwo.getId()).thenReturn("testMockIDTwo");
    // Create the handler and add both execution plans
    SiddhiHandler siddhiHandler = new SiddhiHandler();
    siddhiHandler.add(siddhiPlanMock);
    siddhiHandler.add(siddhiPlanMockTwo);
    // Call stop
    siddhiHandler.stop();
    // Now verify that the stop method was called
    verify(siddhiPlanMock).stop();
    verify(siddhiPlanMockTwo).stop();
}