@Test(expected = ClassNotFoundException.class)
public void doubleRing_classNotFoundExceptionInRestore() throws Exception {

    new Expectations() {
        {
            doubleRing.backup();
            result = new IOException();
            doubleRing.restore();
            result = new ClassNotFoundException();
        }
    };
    resource.doubleRing();
}