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());
}