@Test(expected = ResourceNotFoundException.class)
public void testDeleteProcessorWhenFlowDoesNotExist() {

    final String flowId = "DOES-NOT-EXIST";
    when(flowManager.getFlow(flowId)).thenReturn(Optional.empty());
    processorService.delete(flowId, group2Processor1.getIdentifier());
}