* @param expectedDiffuseColor the expected diffuse color
*/
public static void testColorFromMaterial(Appearance appearance, Color3f expectedAmbientColor,
Color3f expectedSpecularColor, Color3f expectedDiffuseColor) {
assertNotNull(appearance);
Material material = appearance.getMaterial();
assertNotNull(material);
Color3f actualAmbientColor = new Color3f();
material.getAmbientColor(actualAmbientColor);
assertEquals(expectedAmbientColor, actualAmbientColor);
Color3f actualSpecularColor = new Color3f();
material.getSpecularColor(actualSpecularColor);
assertEquals(expectedSpecularColor, actualSpecularColor);
Color3f actualDiffuseColor = new Color3f();
material.getDiffuseColor(actualDiffuseColor);
assertEquals(expectedDiffuseColor, actualDiffuseColor);
}