@Test
public void getCourseFromCacheOrLoad_getNotExisting() {

    // this is not found in cache and cannot be loaded, so it is null
    RepositoryEntry notExistingRepositoryEntry = mock(RepositoryEntry.class);
    when(notExistingRepositoryEntry.getResourceableId()).thenReturn(new Long(100));
    ICourse publicCourse = notificationCourseAccessManager.getCourseFromCacheOrLoad(notExistingRepositoryEntry);
    assertNull(publicCourse);
}