public void testTakeBlocksWhenEmpty() {
final BoundedBuffer bb = new BoundedBuffer();
Thread taker = new Thread() {
public void run() {
try {
Object unused = bb.take();
fail(); // if we get here, it's an error
} catch (InterruptedException success) {
}
}
};