Index: modules/swing/src/test/api/java/common/javax/swing/JLayeredPaneTest.java =================================================================== --- modules/swing/src/test/api/java/common/javax/swing/JLayeredPaneTest.java (revision 493699) +++ modules/swing/src/test/api/java/common/javax/swing/JLayeredPaneTest.java (working copy) @@ -324,6 +324,12 @@ // moveToBack() does nothing if the component is not from the containter layered.moveToBack(new JPanel()); assertEquals(6, layered.getComponentCount()); + try { // Regression test for HARMONY-2279 + layered.moveToBack(null); + fail("NullPointerException should have been thrown"); + } catch (NullPointerException e) { + // Expected + } } /*