@Test
public void testParseStoreToImagesMap() throws Exception {

    DockerfileGitHubUtil dockerfileGitHubUtil = mock(DockerfileGitHubUtil.class);
    when(dockerfileGitHubUtil.getMyself()).thenReturn(mock(GHMyself.class));
    when(dockerfileGitHubUtil.getRepo(anyString())).thenReturn(mock(GHRepository.class));
    GHContent mockContent = mock(GHContent.class);
    ClassLoader classloader = Thread.currentThread().getContextClassLoader();
    when(mockContent.read()).thenReturn(classloader.getResourceAsStream("image-store-sample.json"));
    when(dockerfileGitHubUtil.tryRetrievingContent(any(GHRepository.class), anyString(), anyString())).thenReturn(mockContent);
    All all = new All();
    all.loadDockerfileGithubUtil(dockerfileGitHubUtil);
    Set<Map.Entry<String, JsonElement>> imageSet = all.parseStoreToImagesMap("testStore");
    assertNotNull(imageSet);
}