public void testColors() { Fixture.fakePhase(PhaseId.PROCESS_ACTION); Display display = new Display(); Composite shell = new Shell(display, SWT.NONE); Twistie twistie = new Twistie(shell, SWT.NONE); Color decorationColor = Graphics.getColor(255, 0, 0); twistie.setDecorationColor(decorationColor); assertEquals(decorationColor, twistie.getDecorationColor()); Color hoverColor = Graphics.getColor(0, 255, 0); twistie.setHoverDecorationColor(hoverColor); assertEquals(hoverColor, twistie.getHoverDecorationColor()); }