@Test
public void add() throws RestException {

    SiddhiHandler siddhiHandler = new SiddhiHandler();
    // Build a map with the execution plan data
    Map<String, Object> executionPlanMap = new HashMap<>();
    Map<String, String> outputTopics = new HashMap<>();
    outputTopics.put("testOutput", "outputTopic");
    executionPlanMap.put("id", "testID");
    executionPlanMap.put("input", Arrays.asList("test", "test2"));
    executionPlanMap.put("output", outputTopics);
    executionPlanMap.put("executionPlan", "from test select a insert into testOutput");
    // Add it to siddhi handler
    siddhiHandler.add(executionPlanMap);
    // Assert that the execution plan was added
    assertTrue(siddhiHandler.getSiddhiPlans().containsKey("testID"));
}