    @Test(expected = IllegalArgumentException.class)
    public void addPropertyIllegalArgumentTest2() {

        CodegenGeneratedTypeBuilder generatedTypeBuilder = new CodegenGeneratedTypeBuilder(
            JavaTypeName.create("my.package", "MyName"));

        generatedTypeBuilder.addProperty("myName");
        generatedTypeBuilder.addProperty("myName");
    }