@Test(expected = IllegalStateException.class)
 public void testToBytesNegative() {
   messageLength.lengthToBytes(-1);
 }
 @Test(expected = IllegalStateException.class)
 public void testToBytesToBig() {
   messageLength.lengthToBytes(151209);
 }
 @Test
 public void testToBytesTwoBytesBothNegative() {
   assertArrayEquals(messageLength.lengthToBytes(44444), new byte[] {-83, -100});
 }
 @Test
 public void testToBytesTwoBytesFirstNegative() {
   assertArrayEquals(messageLength.lengthToBytes(51209), new byte[] {-56, 9});
 }
 @Test
 public void testToBytesTwoBytes() {
   assertArrayEquals(messageLength.lengthToBytes(774), new byte[] {3, 6});
 }
 @Test
 public void testToBytesTwoBytesLastNegative() {
   assertArrayEquals(messageLength.lengthToBytes(1000), new byte[] {3, -24});
 }
 @Test
 public void testToBytesZero() {
   assertArrayEquals(messageLength.lengthToBytes(0), new byte[] {0, 0});
 }
 @Test
 public void testToBytes() {
   assertArrayEquals(messageLength.lengthToBytes(34), new byte[] {0, 34});
 }
 @Test
 public void testToBytesForSingleNegative() {
   assertArrayEquals(messageLength.lengthToBytes(255), new byte[] {0, -1});
 }