@Test(expected = IllegalStateException.class)
public void getAssertion_NullAuthentication_IllegalStateException() {

    SecurityContextHolder.getContext().setAuthentication(null);
    AssertionProvider provider = new SecurityContextHolderAssertionProvider();
    provider.getAssertion();
}