AwsSecurityContext implements SecurityContext { @Override public String getAuthenticationScheme() { return authenticationScheme; } AwsSecurityContext(@Nullable String authenticationScheme, @Nullable Principal principal); @Override Principal getUserPrincipal(); @Override boolean isUserInRole(String role); @Override boolean isSecure(); @Override String getAuthenticationScheme();  }
@Test public void getAuthenticationScheme_NullAuthSchemeGiven_ShouldReturnNull() { assertNull(new AwsSecurityContext(null, null).getAuthenticationScheme()); }
@Test public void getAuthenticationScheme_AuthSchemeGiven_ShouldReturnAuthScheme() { assertEquals("authScheme", new AwsSecurityContext("authScheme", null).getAuthenticationScheme()); }
@Test public void getUserPrincipal_NullPrincipalGiven_ShouldReturnNull() { assertNull(new AwsSecurityContext(null, null).getAuthenticationScheme()); }