diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/SimpleStringTest.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/SimpleStringTest.java index 0498cab8a9..85e579498f 100644 --- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/SimpleStringTest.java +++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/SimpleStringTest.java @@ -28,7 +28,7 @@ public class SimpleStringTest { @Test public void testOutOfBoundsThrownOnMalformedString() { ByteBuf byteBuffer = ByteBufAllocator.DEFAULT.buffer(5); - byteBuffer.writeInt(100); + byteBuffer.writeInt(Integer.MAX_VALUE); Exception e = null; try {