@Test
public void testShaderKinds() throws Exception {

  final File frag = temporaryFolder.newFile("a.frag");
  final File vert = temporaryFolder.newFile("a.vert");
  final File comp = temporaryFolder.newFile("a.comp");
  final String emptyShader = "#version 320 es\nvoid main() { }\n";
  FileUtils.writeStringToFile(frag, emptyShader, StandardCharsets.UTF_8);
  FileUtils.writeStringToFile(vert, emptyShader, StandardCharsets.UTF_8);
  FileUtils.writeStringToFile(comp, emptyShader, StandardCharsets.UTF_8);
  final TranslationUnit fragTu = ParseHelper.parse(frag);
  final TranslationUnit vertTu = ParseHelper.parse(vert);
  final TranslationUnit compTu = ParseHelper.parse(comp);
  assertEquals(ShaderKind.FRAGMENT, fragTu.getShaderKind());
  assertEquals(ShaderKind.VERTEX, vertTu.getShaderKind());
  assertEquals(ShaderKind.COMPUTE, compTu.getShaderKind());
}