Bug 266146 [CSS] JUnit for: Property retrieval must check instanceof and return null
tests/org.eclipse.e4.ui.tests.css.swt/src/org/eclipse/e4/ui/tests/css/swt/IdClassLabelColorTest.java
engine.applyStyles(shell, true);
		shell.pack();
		return labelToTest;
	}
	
	
	public void testWidgetClass() throws Exception {
		Label label = createTestLabel("Label { background-color: #FF0000 }");
		assertEquals(RED, label.getBackground().getRGB());
	}
	
	
	public void testCssClass() throws Exception {
		Label labelToTest = createTestLabel("." + CSS_CLASS_NAME + " { background-color: #00FF00 }");
		
		assertEquals(SWTElement.getCSSClass(labelToTest), CSS_CLASS_NAME);
		assertEquals(GREEN, labelToTest.getBackground().getRGB());
	}
	
	public void testWidgetId() throws Exception {
		Label labelToTest = createTestLabel("#" + CSS_ID + " { background-color: #0000FF }");
		
		
		assertEquals(SWTElement.getID(labelToTest), CSS_ID);
		assertEquals(BLUE, labelToTest.getBackground().getRGB());
	}
}