### Question:
TokenValidationConfig { public static TokenValidationConfig fromSMSString(String stringRepresentation) { StringTokenizer tokenizer = new StringTokenizer(stringRepresentation, DELIMETER); return new TokenValidationConfig(TokenType.valueOf(tokenizer.nextToken()), Boolean.valueOf(tokenizer.nextToken())); } TokenValidationConfig(TokenType validatedTokenType, boolean invalidateInterimOpenAMSession); boolean invalidateInterimOpenAMSession(); TokenType getValidatedTokenType(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); JsonValue toJson(); static TokenValidationConfig fromJson(JsonValue json); String toSMSString(); static TokenValidationConfig fromSMSString(String stringRepresentation);  }### Answer:
@Test public void testStringRepresentationRoundTrip2() { TokenValidationConfig tvc1 = TokenValidationConfig.fromSMSString(STRING_VALIDATE_CONFIG_1); TokenValidationConfig tvc2 = new TokenValidationConfig(TokenType.USERNAME, AMSTSConstants.INVALIDATE_INTERIM_OPENAM_SESSION); assertEquals(tvc1, tvc2); tvc1 = TokenValidationConfig.fromSMSString(STRING_VALIDATE_CONFIG_2); tvc2 = new TokenValidationConfig(TokenType.OPENAM, !AMSTSConstants.INVALIDATE_INTERIM_OPENAM_SESSION); assertEquals(tvc1, tvc2); }