@Test
public void testSubjectConfigs() {
String testKey = "test.key";
String testVal = "test.val";
String testVal2 = "test.val2";
SubjectConfig conf = new SubjectConfig.Builder().set(testKey, testVal).build();
SubjectConfig conf2 = new SubjectConfig.Builder().set(testKey, testVal2).build();
Subject none = repo.lookup(CONF);
Assert.assertNull("non-existent subject lookup should return null", none);
Subject sub = repo.register(CONF, conf);
Assert.assertNotNull("failed to register subject: " + CONF, sub);
Subject sub2 = repo.register(CONF, conf2);
Assert.assertNotNull("failed to re-register subject: " + SUB, sub2);
validateSubject(sub, sub2);
Subject sub3 = repo.lookup(CONF);
validateSubject(sub, sub3);
Subject sub4 = repo.lookup(NOCONF);
Assert.assertNull("subject should not exist", sub4);
}