improve ScannerImplTest
diff --git a/src/test/java/org/yaml/snakeyaml/scanner/ScannerImplTest.java b/src/test/java/org/yaml/snakeyaml/scanner/ScannerImplTest.java
index 6246a92..b4b2950 100644
--- a/src/test/java/org/yaml/snakeyaml/scanner/ScannerImplTest.java
+++ b/src/test/java/org/yaml/snakeyaml/scanner/ScannerImplTest.java
@@ -20,7 +20,6 @@
 

 import junit.framework.TestCase;

 

-import org.yaml.snakeyaml.Util;

 import org.yaml.snakeyaml.Yaml;

 import org.yaml.snakeyaml.error.Mark;

 import org.yaml.snakeyaml.reader.StreamReader;

@@ -49,7 +48,7 @@
         etalonTokens.add(new ScalarToken("abcd", true, dummy, dummy, (char) 0));

         etalonTokens.add(new BlockEndToken(dummy, dummy));

         etalonTokens.add(new StreamEndToken(dummy, dummy));

-        while (scanner.checkToken(new Token.ID[0])) {

+        while (!etalonTokens.isEmpty() && scanner.checkToken(etalonTokens.get(0).getTokenId())) {

             assertEquals(etalonTokens.removeFirst(), scanner.getToken());

         }

         assertFalse("Must contain no more tokens: " + scanner.getToken(), scanner

@@ -57,15 +56,14 @@
     }

 

     public void testWrongTab() throws IOException {

-        String data = Util.getLocalResource("constructor/tab-error.yaml");

         Yaml yaml = new Yaml();

         try {

-            yaml.load(data);

+            yaml.load("\t  data: 1");

             fail("TAB cannot start a token.");

         } catch (Exception e) {

-            assertFalse("Error message shall mention TAB and not '(9'.", e.getMessage().contains(

-                    "(9"));

-            assertTrue(e.getMessage().contains("'\\t'"));

+            assertEquals(

+                    "while scanning for the next token; found character \t'\\t' that cannot start any token",

+                    e.getMessage());

         }

     }

 }

diff --git a/src/test/resources/constructor/tab-error.yaml b/src/test/resources/constructor/tab-error.yaml
deleted file mode 100644
index d421d5c..0000000
--- a/src/test/resources/constructor/tab-error.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-%YAML 1.1

----

-gds_procedure: FCS

-mnemos:

-- name: FINT01

-  GDS:

-	  ID_DOMAIN: INTEGER

-	  table: TTF006_FIN_TRANS

-	  column: ID_FIN_TRANS

-  GUI:

-	  label: Payment ID

-	  tooltip: Payment ID in EPASYS

-	  domainID: 

-	  columnHeader: ID

-- name: FINT02

-  GDS:

-	  ID_DOMAIN: CHAR0020

-	  table: TTF006_FIN_TRANS

-	  column: FCS_INPUT_ID

-  GUI:

-	  label: Input ID

-	  tooltip: Input ID

-	  domainID: 

-	  columnHeader: 
\ No newline at end of file