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

    final String flowId = "1";
    when(flowManager.getFlow(flowId)).thenReturn(Optional.of(flow));
    processGroupFlowService.get(flowId, "DOES-NOT-EXIST", true);
}