try {
if (true) // To avoid unreachable code compilation error.
throw new SyncFailedException("Something went wrong.");
fail("Test 1: SyncFailedException expected.");
} catch (SyncFailedException e) {
assertEquals("Test 2: Incorrect message;",
"Something went wrong.", e.getMessage());
}