@Test
public void declaredWithTypes() throws Exception {

  ImmutableList<DAType> typeArgs = ImmutableList.of(DATypeFactory.declared("java.lang.String"));
  DAType daType = DATypeFactory.declared("com.acme.Toto", typeArgs);
  assertThat(daType.getKind()).isEqualTo(DATypeKind.DECLARED);
  assertThat(daType.getSimpleName().getName()).isEqualTo("Toto");
  assertThat(daType.getQualifiedName().getName()).isEqualTo("com.acme.Toto");
  assertThat(daType.getTypeArgs()).isEqualTo(typeArgs);
}