assert (result == true);
<BUG>String val = ctx.bucket().queueRemove("dsqueue", String.class);
</BUG>
assertEquals(val, "val1");
<BUG>val = ctx.bucket().queueRemove("dsqueue", String.class);
</BUG>
assertEquals(val, "val2");
<BUG>ctx.bucket().queueAdd("dsqueue", null);

assertNull(ctx.bucket().queueRemove("dsqueue", null));
</BUG>
}

assert (result == true);
result = ctx.bucket().queuePush("dsqueue", "val2");
assert (result == true);
String val = ctx.bucket().queuePop("dsqueue", String.class);
assertEquals(val, "val1");
val = ctx.bucket().queuePop("dsqueue", String.class);
assertEquals(val, "val2");
ctx.bucket().queuePush("dsqueue", null);
assertNull(ctx.bucket().queuePop("dsqueue", null));
}
