Client client = new ClientImpl(TEST_HOST, TEST_PORT);
client.useTube("foobar");
// hashes are not valid in tube names
try {
client.useTube("foobar#");
fail("no BAD_FORMAT thrown");
} catch (BeanstalkException be) {
assertEquals("BAD_FORMAT", be.getMessage());
} catch (Exception e) {
fail(e.getMessage());