### Question:
BCDInterpreter implements Interpreter { public int getPackedLength(int nDataUnits) { return (nDataUnits + 1) / 2; } private  BCDInterpreter(boolean leftPadded, boolean fPadded); void interpret(String data, byte[] b, int offset); String uninterpret(byte[] rawData, int offset, int length); int getPackedLength(int nDataUnits); static final BCDInterpreter LEFT_PADDED; static final BCDInterpreter RIGHT_PADDED; static final BCDInterpreter RIGHT_PADDED_F; static final BCDInterpreter LEFT_PADDED_F; }### Answer:
@Test public void testGetPackedLength() throws Throwable { int result = BCDInterpreter.LEFT_PADDED.getPackedLength(0); assertEquals(0, result, "result"); }
@Test public void testGetPackedLength1() throws Throwable { int result = BCDInterpreter.RIGHT_PADDED.getPackedLength(100); assertEquals(50, result, "result"); }