@Test
public final void testEnglish() throws Exception {
String englishMessage = "Received a bad version number: 1";
Messages.changeLocale(new Locale("en"));
BadVersionException enEx = new BadVersionException((byte) 1);
assertEquals(englishMessage, enEx.getMessage());
String anotherEnglishMessage =
"Input buffer is too short. Given: 20 bytes. Need: 10";
ShortBufferException buffEx = new ShortBufferException(20, 10);
assertEquals(anotherEnglishMessage, buffEx.getMessage());