### Question:
PacketLengthUtil { public static void checkValidLength(int length) throws PacketTooLargeException { if (length < Constants.MAX_PACKET_SIZE) { return; } throw new PacketTooLargeException(PKT_TOO_LARGE_ERR); }  static void checkValidLength(int length); static boolean isValidPayload(byte[] payload); static void trySendErr2Client(SqlSessionContext sqlCtx, Throwable cause,
        Supplier<byte[]> errMsg); static boolean isPacketTooLargeException(Throwable cause); static ErrorResponse buildPGPktTooLargeErr(String file, String routine); static final String PKT_TOO_LARGE_ERR; }### Answer:
@Test public void testCheckValidLength() { NoThrow.execute(() -> PacketLengthUtil.checkValidLength(16 * 1024 * 1024), (e) -> Assert.assertTrue(e instanceof PacketTooLargeException)); }