actually, you can't do this, CSS is not applied in unit tests :) You'd need an integration test for this!

Just test it has the correct dataset and it's fine as the CSS should be applied.