@Test
public void testGenerationOfMultipleLogReferences() throws IOException {

    List<Path> pathList = new ArrayList<>();
    pathList.add(Paths.get("/"));
    Mockito.doReturn(pathList).when(fakeFs).getRootDirectories();
    List<String> groupList = new ArrayList<>();
    groupList.add("test_group1");
    groupList.add("test_group2");
    groupList.add("test_group1");  // intentionally same for deduping
    BDDMockito.given(JsonUtils.getMatchingListFromJsonArrayNode(Mockito.any(), Mockito.any())).willReturn(groupList);
    Set<AWSLogReference> logReferences = ec2Plugin.getLogReferences();
    assertThat(logReferences).hasSize(2);
}