assertEquals(RequestorType.PROXY, Authenticator.RequestorType
.valueOf("PROXY"));
assertEquals(RequestorType.SERVER, Authenticator.RequestorType
.valueOf("SERVER"));
try {
RequestorType rt = Authenticator.RequestorType.valueOf("BADNAME");
fail("Must throw IllegalArgumentException");
} catch (IllegalArgumentException e) {
// correct
}
// Some old RIs throw IllegalArgumentException