### Question:
SaslMessage { public static SaslMessage parse(String message) { String[] parts = message.split("\u0000"); if (parts.length != 3) { throw new IllegalArgumentException( "Expected authorization-id\\0authentication-id\\0passwd but got only " + parts.length + " parts : " + message); } return new SaslMessage(parts[0], parts[1], parts[2]); } private  SaslMessage(String authzid, String authcid, String passwd); String getAuthzid(); String getAuthcid(); String getPasswd(); static SaslMessage parse(String message);  }### Answer:
@Test public void testParse() { final SaslMessage saslMessage = SaslMessage.parse("authzid\u0000authcid\u0000passwd"); assertThat(saslMessage.getAuthzid()).isEqualTo("authzid"); assertThat(saslMessage.getAuthcid()).isEqualTo("authcid"); assertThat(saslMessage.getPasswd()).isEqualTo("passwd"); }