JComponent testButton = newJComponent();
assertTrue(MetalBorders.getDesktopIconBorder() instanceof BorderUIResource.CompoundBorderUIResource);
BorderUIResource.CompoundBorderUIResource border = (BorderUIResource.CompoundBorderUIResource) MetalBorders
.getDesktopIconBorder();
assertTrue(border.getInsideBorder() instanceof MatteBorder);
MatteBorder insideBorder = (MatteBorder) border.getInsideBorder();
assertTrue(border.getOutsideBorder() instanceof LineBorder);
LineBorder outsideBorder = (LineBorder) border.getOutsideBorder();
assertEquals(new Insets(2, 2, 1, 2), insideBorder.getBorderInsets(testButton));
assertEquals(new Insets(1, 1, 1, 1), outsideBorder.getBorderInsets(testButton));
assertTrue(insideBorder.isBorderOpaque());
assertEquals(new ColorUIResource(238, 238, 238), insideBorder.getMatteColor());
assertFalse(outsideBorder.getRoundedCorners());
assertTrue(outsideBorder.isBorderOpaque());
assertEquals(new ColorUIResource(122, 138, 153), outsideBorder.getLineColor());
assertEquals(1, outsideBorder.getThickness());
}