@Test
    public void testIssue2333() {
        Camera c = new Camera(1, 1);

        // Verify some Camera defaults:
        Assert.assertEquals(0f, c.getViewPortBottom(), 0f);
        Assert.assertEquals(0f, c.getViewPortLeft(), 0f);
        Assert.assertEquals(1f, c.getViewPortRight(), 0f);
        Assert.assertEquals(1f, c.getViewPortTop(), 0f);

        // Try some valid settings:
        new Camera(1, 1).setViewPort(0.5f, 0.7f, 0.1f, 0.3f);
        new Camera(1, 1).setViewPortBottom(0.9f);
        new Camera(1, 1).setViewPortLeft(0.99f);
        new Camera(1, 1).setViewPortRight(0.01f);
        new Camera(1, 1).setViewPortTop(0.1f);
    }
Tests some basic functionality of the viewport settings.
jme3-core/src/test/java/com/jme3/renderer/Issue2333Test.java