AwsSecurityContext implements SecurityContext { @Override public boolean isSecure() { return true; } AwsSecurityContext(@Nullable String authenticationScheme, @Nullable Principal principal); @Override Principal getUserPrincipal(); @Override boolean isUserInRole(String role); @Override boolean isSecure(); @Override String getAuthenticationScheme();  }
@Test public void isSecure_Any_ShouldAlwaysBeSecure() { assertTrue(new AwsSecurityContext(null, null).isSecure()); }