@Test
public void testGenerationOfLogReference() 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_group");
    BDDMockito.given(JsonUtils.getMatchingListFromJsonArrayNode(Mockito.any(), Mockito.any())).willReturn(groupList);
    Set<AWSLogReference> logReferences = ec2Plugin.getLogReferences();
    assertThat(logReferences).hasOnlyOneElementSatisfying(
        reference -> assertThat(reference.getLogGroup()).isEqualTo("test_group"));
}