@Test
public void getMessageShouldThrowExceptionIfKeyIsNull() {

    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("Key can not be empty");
    messages.getMessage(null);
}