@Test
public void testDecode() {

  byte[] buffer = {0, 0, 0, 2, 0, 0, 0, 3, 'f', 'o', 'o', 0, 0, 0, 3, 'b', 'a', 'r'};
  String[] expected = {"foo", "bar"};
  assertArrayEquals(expected, adapter.deserialize(buffer, 0));
}