public void testRefreshSimpleType() throws ResourceException {
    MWXmlSchema schema = this.loadSchema("BasicSimpleType");

    assertNotNull(schema.simpleType("simple-type-1"));
    assertNotNull(schema.simpleType("simple-type-2"));
    assertNotNull(schema.simpleType("simple-type-3"));
  }
  public void testRefreshType() throws ResourceException {
    MWXmlSchema schema = this.loadSchema("BasicType_Simple");
    assertNotNull(schema.simpleType("type"));

    this.reloadSchema(schema, "BasicType_Complex");
    assertNotNull(schema.complexType("type"));

    this.reloadSchema(schema, "BasicType_Simple");
    assertNotNull(schema.simpleType("type"));
  }