@Test
public void createJsonRepresentationOfMutablePermissions() {

    underTest.addAll(EnumSet.allOf(Permission.class));
    final JsonValue actualJsonValue = underTest.toJson();
    final JsonObjectBuilder jsonObjectBuilder = JsonFactory.newObjectBuilder();
    for (final Permission permission : Permission.values()) {
        jsonObjectBuilder.set(permission.toJsonKey(), true);
    }
    final JsonObject expectedJsonObject = jsonObjectBuilder.build();
    assertThat(actualJsonValue).isEqualTo(expectedJsonObject);
}