diff --git a/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java b/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java
index 572cfb18a595156cd099c72f51493d53690c90a3..819b0363c379ae38e39b02dbeeb7ca9a21de1d8a 100644
--- a/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java
+++ b/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java
@@ -235,7 +235,7 @@ public class EntrezAnnotatorTest extends AnnotationTestFunctions {
     }
   }
 
-  @Test(expected = SourceNotAvailable.class)
+  @Test(expected = AnnotatorException.class)
   public void testParseInvalidEntrezResponse() throws Exception {
     WebPageDownloader downloader = entrezAnnotator.getWebPageDownloader();
     GeneralCacheInterface cache = entrezAnnotator.getCache();
@@ -253,7 +253,7 @@ public class EntrezAnnotatorTest extends AnnotationTestFunctions {
 
   }
 
-  @Test(expected = SourceNotAvailable.class)
+  @Test(expected = AnnotatorException.class)
   public void testParseInvalidEntrezResponse2() throws Exception {
     WebPageDownloader downloader = entrezAnnotator.getWebPageDownloader();
     GeneralCacheInterface cache = entrezAnnotator.getCache();