@Test
public void testRemoveEmptyDirectory() {

    long reqId = 13;
    ms.mkdirs("/a/b/test_dir");
    BinaryRawWriterEx message = createMessage(reqId, ModelStorateThinClientProcessor.PROCESSOR_ID, ModelStorateThinClientProcessor.Method.REMOVE);
    message.writeString("/a/b/test_dir");
    ClientCustomQueryRequest req = new ClientCustomQueryRequest(toReader(message));
    ClientResponse resp = req.process(connCtx);
    BinaryRawWriterEx out = createWriter();
    resp.encode(connCtx, out);
    byte[] result = out.out().arrayCopy();
    assertFalse(ms.exists("/a/b/test_dir"));
    assertTrue(ms.exists("/a/b"));
    assertArrayEquals(getExpectedMessageHeader(reqId).out().arrayCopy(), result);
}