/* server should reject frames larger than AMQP.FRAME_MIN_SIZE
  * during connection negotiation */
 public void testRejectLargeFramesDuringConnectionNegotiation() throws IOException {
   ConnectionFactory cf = new ConnectionFactory();
   cf.getClientProperties()
       .put("too_long", LongStringHelper.asLongString(new byte[AMQP.FRAME_MIN_SIZE]));
   try {
     cf.newConnection();
     fail("Expected exception during connection negotiation");
   } catch (IOException e) {
   }
 }
 public LongString handleChallenge(LongString challenge, String username, String password) {
   counter++;
   return LongStringHelper.asLongString(responses[counter - 1]);
 }