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

    final String flowId = "1";
    when(flowManager.getFlow(flowId)).thenReturn(Optional.empty());
    processGroupFlowService.get(flowId, flowContent.getIdentifier(), true);
}