### Question:
AuthSwitchRequest extends Packet { public static AuthSwitchRequest loadFromPacket(byte[] packet) { AuthSwitchRequest obj = new AuthSwitchRequest(); Proto proto = new Proto(packet, 3); obj.sequenceId = proto.get_fixed_int(1); proto.get_filler(1); obj.pluginName = proto.get_null_str(); obj.authPluginData = proto.get_null_str(); return obj; }  ArrayList<byte[]> getPayload(); static AuthSwitchRequest loadFromPacket(byte[] packet); public String pluginName; public String authPluginData; }### Answer:
@Test public void test1() { byte[] packet = Proto.packet_string_to_bytes( "" + "2c 00 00 02 fe 6d 79 73 71 6c 5f 6e 61 74 69 76" + "65 5f 70 61 73 73 77 6f 72 64 00 7a 51 67 34 69" + "36 6f 4e 79 36 3d 72 48 4e 2f 3e 2d 62 29 41 00"); AuthSwitchRequest pkt = AuthSwitchRequest.loadFromPacket(packet); assertArrayEquals(packet, pkt.toPacket()); assertEquals(pkt.pluginName, "mysql_native_password"); assertEquals(pkt.authPluginData, "zQg4i6oNy6=rHN/>-b)A"); }