@Test
public void getMessageShouldThrowExceptionIfKeyDontExist() {

    expectedException.expect(MissingResourceException.class);
    expectedException.expectMessage("Can't find resource for bundle java.util.PropertyResourceBundle, key nothing");
    messages.getMessage("nothing");
}