Use ClassRule as resources are only read.