@Test
public void testActionRequestsWithIdenticalChildrenAreDuplicates() throws Exception {

    List<ActionRequestValue> actionRequestValues = new ArrayList<ActionRequestValue>();
    List<ActionRequestValue> children = new ArrayList<ActionRequestValue>();
    children.add(getActionRequest());
    ActionRequestValue firstActionRequest = getActionRequest();
    firstActionRequest.setChildrenRequests(children);
    actionRequestValues.add(firstActionRequest);
    ActionRequestValue secondActionRequest = getActionRequest();
    secondActionRequest.setChildrenRequests(children);
    actionRequestValues.add(secondActionRequest);
    when(routeModule.findActionRequests(routeContext)).thenReturn(actionRequestValues);
    List<ActionRequestValue> deduplicatedActionRequestValues = requestsNode.getNewActionRequests(routeContext);
    assertEquals(1, deduplicatedActionRequestValues.size());
}