public static byte[] toLH(int n) {
        byte[] b = new byte[4];
        b[0] = (byte) (n & 0xff);
        b[1] = (byte) (n >> 8 & 0xff);
        b[2] = (byte) (n >> 16 & 0xff);
        b[3] = (byte) (n >> 24 & 0xff);
        return b;
    }
@Test
    public void toLHInputZeroOutput4() {

        // Arrange
        final int n = 0;

        // Act
        final byte[] actual = RegisterSlaveCommandPacket.toLH(n);

        // Assert result
        Assert.assertArrayEquals(new byte[] { (byte) 0, (byte) 0, (byte) 0, (byte) 0 }, actual);
    }