@Test
public void testForcedColorSpace(){

   
    Image img=new Image(Format.RGBA8,2,2,BufferUtils.createByteBuffer(16),null,ColorSpace.sRGB);
    Image img2=new Image(Format.RGBA8,2,2,BufferUtils.createByteBuffer(16),null,ColorSpace.sRGB);
    Texture2D tx=new Texture2D(img);
    Texture2D tx2=new Texture2D(img2);
    assertTrue(tx2.getImage().getColorSpace()==ColorSpace.sRGB);
    assertTrue(tx2.getImage().getColorSpace()==ColorSpace.sRGB);
    AssetManager assetManager = TestUtil.createAssetManager();
    MaterialDef def=new MaterialDef(assetManager,"test");
    def.addMaterialParamTexture(VarType.Texture2D, "ColorMap",ColorSpace.Linear, null);
    Material mat=new Material(def);
    
    mat.setTexture("ColorMap",tx);          
    assertTrue(tx.getImage().getColorSpace()==ColorSpace.Linear);
    
    mat.setTexture("ColorMap",tx2);  
    assertTrue(tx2.getImage().getColorSpace()==ColorSpace.Linear);       

}