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

    when(flowManager.getFlow(flow.getFlowMetadata().getIdentifier())).thenReturn(Optional.of(flow));
    final VersionedProcessor requestProcessor = new VersionedProcessor();
    requestProcessor.setIdentifier("DOES-NOT-EXIST");
    processorService.update(flow.getFlowMetadata().getIdentifier(), requestProcessor);
}