@Test
public void testParseDisconnectMessage() throws JSONException {
JSONObject json = new JSONObject(disconnectMessage);
assertFalse(JSONObjectParser.hasSitestreamUser(json));
assertFalse(JSONObjectParser.hasSitestreamMessage(json));
DisconnectMessage message = JSONObjectParser.parseDisconnectMessage(json);
assertEquals(message.getDisconnectCode(), 5);
assertEquals(message.getStreamName(), "somestreamname123");
assertEquals(message.getDisconnectReason(), "reason for disconnection");
}