### Question:
AuthSwitchResponse extends Packet { public static AuthSwitchResponse loadFromPacket(byte[] packet) { AuthSwitchResponse obj = new AuthSwitchResponse(); Proto proto = new Proto(packet, 3); obj.sequenceId = proto.get_fixed_int(1); obj.authPluginResponse = proto.get_eop_str(true); return obj; }  ArrayList<byte[]> getPayload(); static AuthSwitchResponse loadFromPacket(byte[] packet); public String authPluginResponse; }### Answer:
@Test public void test1() { byte[] packet = Proto.packet_string_to_bytes("" + "09 00 00 03 5c 49 4d 5e 4e 58 4f 47 00"); AuthSwitchResponse pkt = AuthSwitchResponse.loadFromPacket(packet); assertArrayEquals(packet, pkt.toPacket()); assertEquals(pkt.authPluginResponse, "XElNXk5YT0cA"); }
@Test public void test2() { byte[] packet = Proto.packet_string_to_bytes( "" + "14 00 00 03 f4 17 96 1f 79 f3 ac 10 0b da a6 b3" + "b5 c2 0e ab 59 85 ff b8"); AuthSwitchResponse pkt = AuthSwitchResponse.loadFromPacket(packet); assertArrayEquals(packet, pkt.toPacket()); assertEquals(pkt.authPluginResponse, "9BeWH3nzrBAL2qaztcIOq1mF/7g="); }