### Question:
Base32Codec implements IByteArrayCodec { @Override public int getMaximumEncodedLength (final int nLen) { return MathHelper.getRoundedUp (nLen * 8 / 5, 8); } Base32Codec();  Base32Codec(final boolean bUseHex); boolean isHexEncoding(); byte getPad(); @Nonnull Base32Codec setPad(final byte nPad); boolean isAddPadding(); @Nonnull Base32Codec setAddPaddding(final boolean bAddPadding); @Override int getMaximumEncodedLength(final int nLen); void encode(@Nullable final byte [] aDecodedBuffer,
                      @Nonnegative final int nOfs,
                      @Nonnegative final int nLen,
                      @Nonnull @WillNotClose final OutputStream aOS); @Override int getMaximumDecodedLength(final int nLen); void decode(@Nullable final byte [] aEncodedBuffer,
                      @Nonnegative final int nOfs,
                      @Nonnegative final int nLen,
                      @Nonnull @WillNotClose final OutputStream aOS);  }### Answer:
@Test public void testGetEncodedLength () { final Base32Codec aBase32 = new Base32Codec (); assertEquals (0, aBase32.getMaximumEncodedLength (0)); for (int i = 1; i <= 5; ++i) assertEquals (8, aBase32.getMaximumEncodedLength (i)); for (int i = 6; i <= 10; ++i) assertEquals (16, aBase32.getMaximumEncodedLength (i)); for (int i = 11; i <= 15; ++i) assertEquals (24, aBase32.getMaximumEncodedLength (i)); for (int i = 0; i < 256; ++i) { final byte [] aBuf = new byte [i]; Arrays.fill (aBuf, (byte) i); assertEquals (aBase32.getEncoded (aBuf).length, aBase32.getMaximumEncodedLength (i)); } }