Resources { static Font createFrom( Font baseFont, int increment ) { return new Font( baseFont.getName(), baseFont.getStyle(), baseFont.getSize() + increment ); }  static void changeFontSize( Component component, int increment ); static final Color WHITE; }
@Test public void createFrom() { Font base = new Font( FONT_NAME, FONT_STYLE, BASE_SIZE ); Font expected = new Font( FONT_NAME, FONT_STYLE, BASE_SIZE + INCREMENT ); Font actual = Resources.createFrom( base, INCREMENT ); assertThat( actual ).isEqualTo( expected ); }