@Test
public void getMessagesNegativeIndexTest() {

    ChatState appState = new ChatState();
    try {
        List<IMessage> messageList = appState.getMessagesFromIndex(-5);
    } catch (IllegalArgumentException ex) {
        return;
    }
    throw new AssertionError("AppState should have thrown an IllegalStateException");
}