rabbitmq-tests/src/test/java/com/datastax/oss/starlight/rabbitmqtests/javaclient/functional/FrameMax.java
@Test
  public void rejectLargeFramesDuringConnectionNegotiation() throws IOException, TimeoutException {
    ConnectionFactory cf = newConnectionFactory();
    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) {
    }
  }
/* server should reject frames larger than AMQP.FRAME_MIN_SIZE
   * during connection negotiation */
server should reject frames larger than AMQP.FRAME_MIN_SIZE
during connection negotiation
server should reject frames larger than AMQP . FRAME_MIN_SIZE during connection negotiation
@Test
  public void rejectLargeFramesDuringConnectionNegotiation() throws IOException, TimeoutException {
    ConnectionFactory cf = newConnectionFactory();
    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) {
    }
  }
@ Test public void rejectLargeFramesDuringConnectionNegotiation ( ) throws IOException , TimeoutException { ConnectionFactory cf = newConnectionFactory ( ) ; 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 ) { } }
server should reject frames larger than AMQP.FRAME_MIN_SIZE
 during connection negotiation
server should reject frames larger than AMQP . FRAME_MIN_SIZE during connection negotiation