ComponentClassResolver resolver = create(logger, locator, new LibraryMapping(CORE_PREFIX, CORE_ROOT_PACKAGE));
try
{
resolver.resolvePageNameToClassName("Unknown");
unreachable();
} catch (UnknownValueException ex)
{
assertEquals(ex.getMessage(), "Unable to resolve \'Unknown\' to a page class name.");
assertEquals(ex.getAvailableValues().toString(), "AvailableValues[Page names: Barney, Betty, Fred, Wilma]");