Claims extends Rfc7519Claims { public Map<String, String> getProperties() { if (this.properties == null) { return emptyProperties; } else { return Collections.unmodifiableMap(this.properties); } }  Map<String, String> getProperties();  }
@Test public void testEmptyProperties() { Claims.Builder builder = new Claims.Builder(); Claims claims = builder.getResult(); assertNotNull(claims.getProperties()); assertEquals(0, claims.getProperties().size()); }
@Test public void testProperties() { Map<String, String> map = new HashMap<>(); map.put(KEY, VALUE); Claims.Builder builder = new Claims.Builder(); builder.setProperties(map); Claims claims = builder.getResult(); assertNotNull(claims.getProperties()); assertEquals(1, claims.getProperties().size()); assertEquals(VALUE, claims.getProperties().get(KEY)); }