RoboconfMessageQueue extends LinkedBlockingQueue<Message> { @Override public void put( Message e ) throws InterruptedException { throw new RuntimeException( "This method is disabled for Roboconf." ); } RoboconfMessageQueue();   RoboconfMessageQueue( int capacity ); @Override boolean offer( Message e ); @Override void put( Message e ); void reset(); void errorWhileReceivingMessage(); long getFailedReceptionCount(); long getReceivedMessagesCount(); long getTimestampOfLastReceptionFailure(); long getTimestampOfLastReceivedMessage();  }
@Test( expected = RuntimeException.class ) public void testPutIsForbidden() throws Exception { RoboconfMessageQueue queue = new RoboconfMessageQueue(); queue.put( Mockito.mock( Message.class )); }