For clear(), on desktop if you clear an alarm that doesn't exist no exception is thrown. In your code though, you throw an exception. Please add a test for this case.