AbstractCommand cmd = createCommandWithFilter();
assertNull(cmd.getIoBuffer());
cmd.encode();
IoBuffer buf = cmd.getIoBuffer();
assertNotNull(buf);
assertEquals(0, buf.position());
assertTrue(buf.limit() > 0);
assertEquals("P\t1\tmytest\tuser\tINDEX_1\tid,name,password\tage,name\n",
new String(buf.array(), 0, buf.limit()));