### Question:
MultiByteInteger { public static byte[] encode(double sMbi) { return encode((int) Math.round(sMbi * 100_000_000)); } private  MultiByteInteger(); static int parse(InputStream inputStream); static int parse(byte[] data); static int parse(ByteBuffer inputBuffer); static int calculateByteLength(int value); static int calculateByteLength(double sMbi); static byte[] encode(double sMbi); static byte[] encode(int value); static boolean isValid(int value); static final int MAX_BYTE_SIZE; static final int MIN_BYTE_SIZE; static int MAX_SIZE; static int MIN_SIZE; }### Answer:
@Test(expected = Error.class) public void testMinValue() { MultiByteInteger.encode(MultiByteInteger.MIN_SIZE - 1); }
@Test(expected = Error.class) public void testMaxValue() { MultiByteInteger.encode(MultiByteInteger.MAX_SIZE + 1); }