@Test
public void hasCanonicalConstant() {

  StructDefinitionType t = new StructDefinitionType(new StructNameType("astruct"),
      Arrays.asList("x", "y"),
      Arrays.asList(BasicType.MAT4X4, BasicType.VEC4));
  assertTrue(t.hasCanonicalConstant(new Scope()));
  assertEquals("astruct(mat4(1.0), vec4(1.0))",
      t.getCanonicalConstant(new Scope()).getText());
}