@Test
public void buildJsonView() {

    final TrieBasedPolicyEnforcer underTest =
            TrieBasedPolicyEnforcer.newInstance(defaultPolicy(PolicyId.of("namespace", "id")));
    final JsonObject createdJsonView = underTest.buildJsonView(
            ResourceKey.newInstance("foo", "bar"),
            JsonFactory.nullObject(),
            AuthorizationContext.newInstance(DittoAuthorizationContextType.UNSPECIFIED,
                    AuthorizationSubject.newInstance("itsMe")),
            Permissions.none());
    final JsonObject expectedJsonView = JsonFactory.nullObject();
    assertThat(createdJsonView).isEqualTo(expectedJsonView);
}