Pattern pattern = pkr.getGranularityPattern();
assertEquals("^\\Q\\E.*\\Q\\E$", pattern.pattern());
assertTrue(pattern.matcher("something").matches());
assertTrue(pattern.matcher("").matches());
pkr = new PublicKeyRecordImpl("k=rsa; g=; h=sha1:sha256; p=XXXXXXXX=;");
pkr.validate();
pattern = pkr.getGranularityPattern();
assertEquals("@", pattern.pattern());
assertFalse(pattern.matcher("something").matches());
assertFalse(pattern.matcher("").matches());
pkr = new PublicKeyRecordImpl(