changed to     @Test(expected = IllegalStateException.class)