DataStoreUnavailableException extends Exception { public DataStoreUnavailableException(String message, Throwable cause) { super(message, cause); } DataStoreUnavailableException(String message, Throwable cause);   }
@Test(expected = DataStoreUnavailableException.class) public void dataStoreUnavailableExceptionTest() throws Exception { throw new DataStoreUnavailableException("test", null); }