@Test
  public void testGlobalAndFacts() {
    final SuggestionCompletionEngine com = new SuggestionCompletionEngine();

    com.setGlobalVariables(
        new HashMap<String, String>() {
          {
            put("y", "Foo");
          }
        });

    com.setFieldsForTypes(
        new HashMap<String, ModelField[]>() {
          {
            put(
                "Foo",
                new ModelField[] {
                  new ModelField(
                      "a", String.class.getName(), FIELD_CLASS_TYPE.REGULAR_CLASS, "String")
                });
          }
        });

    assertFalse(com.isGlobalVariable("x"));
    assertTrue(com.isGlobalVariable("y"));
  }