@Test
public void getSignedMedium() {

    assertEquals(       0, AkServerUtil.getMediumInt(byteArray(0x00, 0x00, 0x00), 0));
    assertEquals(       1, AkServerUtil.getMediumInt(byteArray(0x01, 0x00, 0x00), 0));
    assertEquals( 8388607, AkServerUtil.getMediumInt(byteArray(0xFF, 0xFF, 0x7F), 0));
    assertEquals(-8388608, AkServerUtil.getMediumInt(byteArray(0x00, 0x00, 0x80), 0));
    assertEquals(      -2, AkServerUtil.getMediumInt(byteArray(0xFE, 0xFF, 0xFF), 0));
    assertEquals(      -1, AkServerUtil.getMediumInt(byteArray(0xFF, 0xFF, 0xFF), 0));
}