@Test
public void getForegroundShouldReturnDarkGrayForAnInvalidLaunchMode() {
Color expectedColor = PlatformUI.getWorkbench().getDisplay()
.getSystemColor(SWT.COLOR_DARK_GRAY);
ILaunchMode mode = mock(ILaunchMode.class);
given(mode.getIdentifier()).willReturn("noSuchId");
assertThat(provider.getForeground(mode), equalTo(expectedColor));
}