void (int style) { Font font = new Font(Font.DIALOG, style, 12); assertSame(font, RelativeFont.NORMAL.derive(font)); assertEquals(Font.PLAIN, RelativeFont.PLAIN.derive(font).getStyle()); assertEquals(Font.BOLD, RelativeFont.BOLD.derive(font).getStyle()); assertEquals(Font.ITALIC, RelativeFont.ITALIC.derive(font).getStyle()); assertEquals(Font.BOLD | Font.ITALIC, BOLD_ITALIC_FONT.derive(font).getStyle()); }