### Question:
SAML2TokenCreationState { public static SAML2TokenStateBuilder builder() { return new SAML2TokenStateBuilder(); } private  SAML2TokenCreationState(SAML2TokenStateBuilder builder); static SAML2TokenStateBuilder builder(); SAML2SubjectConfirmation getSubjectConfirmation(); ProofTokenState getProofTokenState(); static SAML2TokenCreationState fromJson(JsonValue jsonValue); JsonValue toJson(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); static final String SUBJECT_CONFIRMATION; static final String PROOF_TOKEN_STATE; }### Answer:
@Test (expectedExceptions = TokenMarshalException.class) public void testHoKWithoutProofTokenState() throws Exception { SAML2TokenCreationState.builder() .saml2SubjectConfirmation(SAML2SubjectConfirmation.HOLDER_OF_KEY) .build(); }