@Test
public void testMultipleOperationsConfig() throws HandlerException {

  BaseHandler.CONFIG_FILE = "/config/handler_config_two_operations.json";
  List<DummyEvent> events = new ArrayList<DummyEvent>(1);
  events.add(new DummyEvent("foo", 0));
  TestContext context = new TestContext();
  context.setInvokedFunctionArn("arn:aws:lambda:us-east-1:123:function:test:tag");
  handler.init(context);
  List<OperationProcessor> operationProcessores = handler.sources.get(0).getOperationProcessors();
  for (int i = 0; i < operationProcessores.size(); i++) {
    OperationProcessor operationProcessor = spy(operationProcessores.get(i));
    operationProcessores.set(i, operationProcessor);
  }
  handler.handler(events, context);
  /*
   * 2 operations specified in the config file
   */
  verify(operationProcessores.get(0), times(1)).perform(any());
  verify(operationProcessores.get(1), times(1)).perform(any());
}