@Test
public void testGetUniformDeclaration() throws Exception {

  final String shader =
      "uniform float a, b;"
      + "uniform int;"
      + "void main()"
      + "{"
      + "  float c = a;"
      + "  float d = b;"
      + "}";
  final TranslationUnit translationUnit = ParseHelper.parse(shader, ShaderKind.FRAGMENT);
  final VariablesDeclaration variablesDeclaration =
      translationUnit.getUniformDeclaration("a");
  assertEquals(variablesDeclaration.getDeclInfos().get(0).getName(), "a");
  assertEquals(variablesDeclaration.getDeclInfos().get(1).getName(), "b");
  final VariablesDeclaration variablesDeclaration2 =
      translationUnit.getUniformDeclaration("b");
  assertEquals(variablesDeclaration2.getDeclInfos().get(0).getName(), "a");
  assertEquals(variablesDeclaration2.getDeclInfos().get(1).getName(), "b");
}