### Question:
SimpleDistributedQueue { public byte[] remove() throws Exception { byte[] bytes = internalElement(true, null); if ( bytes == null ) { throw new NoSuchElementException(); } return bytes; } SimpleDistributedQueue(CuratorFramework client, String path); byte[] element(); byte[] remove(); byte[] take(); boolean offer(byte[] data); byte[] peek(); byte[] poll(long timeout, TimeUnit unit); byte[] poll();  }### Answer:
@Test public void testRemova1() throws Exception { CuratorFramework clients[] = null; try { String dir = "/testRemove1"; final int num_clients = 1; clients = new CuratorFramework[num_clients]; SimpleDistributedQueue queueHandles[] = new SimpleDistributedQueue[num_clients]; for ( int i = 0; i < clients.length; i++ ) { clients[i] = CuratorFrameworkFactory.newClient(server.getConnectString(), new RetryOneTime(1)); clients[i].start(); queueHandles[i] = new SimpleDistributedQueue(clients[i], dir); } try { queueHandles[0].remove(); } catch ( NoSuchElementException e ) { return; } assertTrue(false); } finally { closeAll(clients); } }