@Test
    public void testIssue2250WithData() {
        int width = 8;
        int height = 8;
        int numBytes = 4 * width * height;
        ByteBuffer data = BufferUtils.createByteBuffer(numBytes);
        Image image1 = new Image(
                Image.Format.RGBA8, width, height, data, ColorSpace.Linear);

        image1.setMultiSamples(1);
    }
Test setMultiSamples() on an Image with a data buffer.
jme3-core/src/test/java/com/jme3/texture/TestIssue2250.java