### Question:
Proto { public static byte[] build_eop_str(String str) { return Proto.build_eop_str(str, false); } Proto(byte[] packet);  Proto(byte[] packet, int offset); boolean has_remaining_data(); static byte[] build_fixed_int(int size, long value); static byte[] build_lenenc_int(long value); static byte[] build_lenenc_str(String str); static byte[] build_lenenc_str(String str, boolean base64); static byte[] build_null_str(String str); @SuppressWarnings("unused") static byte[] build_null_str(String str, boolean base64); static byte[] build_fixed_str(long size, String str); static byte[] build_fixed_str(long size, String str, boolean base64); static byte[] build_fixed_str(int size, String str); static byte[] build_keeplenth_str(String str); static byte[] build_fixed_str(int size, String str, boolean base64); static byte[] build_eop_str(String str); static byte[] build_eop_str(String str, boolean base64); static byte[] build_filler(int len); static byte[] build_filler(int len, int filler_value); static byte[] build_filler(int len, byte filler_value); static byte[] build_byte(byte value); static char int2char(byte i); static byte char2int(char i); long get_fixed_int(int size); static long get_fixed_int(byte[] bytes); void get_filler(int size); long get_lenenc_int(); String get_fixed_str(long len); String get_fixed_str(long len, boolean base64); byte[] get_fixed_bytes(int len); String get_fixed_str(int len); String get_fixed_str(int len, boolean base64); String get_null_str(); byte[] get_null_bytes(); String get_null_str(boolean base64); String get_eop_str(); byte[] get_eop_bytes(); String get_eop_str(boolean base64); String get_lenenc_str(); String get_lenenc_str(boolean base64); static byte[] arraylist_to_array(ArrayList<byte[]> input); static byte[] packet_string_to_bytes(String str); public byte[] packet; public int offset; }### Answer:
@Test public void test23() { byte[] expected = new byte[] {(byte) 0x61, (byte) 0x62,}; String str = new String("ab"); assertArrayEquals(expected, Proto.build_eop_str(str)); }