    @Test
    public void testOverrideCtlDependency() throws IOException, ParseException {

        SchemaFormAvroConverter converter = 
                new SchemaFormAvroConverter(new TestCtlSource());
        String typeCtlReferencesSchema = TestAvroSchemas.getSchemaJson(TestAvroSchemas.TYPE_CTL_REFERENCES);
        RecordField schemaForm = converter.createSchemaFormFromSchema(typeCtlReferencesSchema);
        StringField nameField = getStringField(schemaForm, "recordName");
        StringField namespaceField = getStringField(schemaForm, "recordNamespace");
        FormField field = schemaForm.getFieldByName("version");
        Assert.assertNotNull(field);
        Assert.assertTrue(field instanceof VersionField);
        VersionField versionField = (VersionField)field;
        versionField.setValue(null);
        nameField.setValue("TypeB");
        namespaceField.setValue("org.kaaproject.ctl");
        Assert.assertNotNull(versionField.getValue());
        Assert.assertEquals(6, versionField.getValue().intValue());
        
        FormContext context = schemaForm.getContext();
        Assert.assertNotNull(context);
        List<FqnVersion> ctlDependencies = context.getCtlDependenciesList();
        Assert.assertNotNull(ctlDependencies);
        Assert.assertEquals(1, ctlDependencies.size());
        FqnVersion fqnVersion = ctlDependencies.get(0);
        Assert.assertNotNull(fqnVersion);
        Assert.assertEquals("org.kaaproject.ctl.TypeA", fqnVersion.getFqnString());
        Assert.assertEquals(5, fqnVersion.getVersion());
    }