@Test
public void testHasUniformDeclaration() throws Exception {

  final String shader =
      "uniform float a[2], b;"
          + "uniform int;"
          + "void main()"
          + "{"
          + "  float c = a[0];"
          + "  float d = b;"
          + "}";
  final TranslationUnit translationUnit = ParseHelper.parse(shader, ShaderKind.FRAGMENT);
  assertTrue(translationUnit.hasUniformDeclaration("a"));
  assertTrue(translationUnit.hasUniformDeclaration("b"));
  assertFalse(translationUnit.hasUniformDeclaration("c"));
}