Same here. Should use org.junit.rules.ExpectedException