@Test
/**
 * NOTE: if this test is failing when run in Eclipse, run it once from the command to populate
 * the resources/ directory.
 * */
public void testStandardSchema() throws Exception
{

  ResourceVersionedSchemaSetProvider resourceProvider = new ResourceVersionedSchemaSetProvider(this.getClass().getClassLoader());
  VersionedSchemaSet schemaSet = resourceProvider.loadSchemas();
  VersionedSchema fakeExistingSchema = schemaSet.getLatestVersionByName("com.linkedin.events.example.fake.FakeSchema");
  Assert.assertNotNull(fakeExistingSchema);
  Assert.assertTrue(fakeExistingSchema.getVersion() >= 2, "version >= 2: " + fakeExistingSchema.getVersion());
  VersionedSchema personSchema = schemaSet.getLatestVersionByName("com.linkedin.events.example.person.Person");
  Assert.assertNotNull(personSchema);
  VersionedSchema fakeNonExistingSchema = schemaSet.getLatestVersionByName("fake.schema");
  Assert.assertTrue(null == fakeNonExistingSchema);
}