### Question:
PolicyRequest { public Map<String, Set<String>> getEnvironment() { return environment; } PolicyRequest(final PolicyRequestBuilder<?> builder); Subject getRestSubject(); Subject getPolicySubject(); String getApplication(); String getRealm(); Map<String, Set<String>> getEnvironment(); abstract List<Entitlement> dispatch(PolicyEvaluator evaluator);  }### Answer:
@Test public void shouldDefaultToEmptyEnvironment() throws EntitlementException { given(subjectContext.getCallerSubject()).willReturn(restSubject); Map<String, Object> properties = new HashMap<String, Object>(); given(actionRequest.getContent()).willReturn(json(properties)); Context context = buildContextStructure(""); PolicyRequest request = getRequest(context, actionRequest); assertThat(request).isNotNull(); assertThat(request.getEnvironment()).isNotNull(); assertThat(request.getEnvironment()).isEmpty(); verify(subjectContext).getCallerSubject(); verify(actionRequest).getContent(); verifyNoMoreInteractions(subjectContext, actionRequest); }