### Question:
SyncConfigurationUtils { public static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath) { ObjectMapper mapper = new ObjectMapper(); try { String resourceFile = absolutePath.equals(ABSOLUTE) ? readResourceFileAbsolutePath(path) : readResourceFile(path); return mapper.readValue(resourceFile, SyncConfiguration.class); } catch (IOException e) { throw new SyncException(e); } }  static void checkIfConfigurationIsValid(); static String readResourceFile(String file); static String readResourceFileAbsolutePath(String file); static SyncConfiguration parseJsonFileToSyncConfiguration(String path, ResourcePathType absolutePath); static SyncConfiguration parseJsonStringToSyncConfiguration(String value); static boolean isValidateJson(String json); static String writeSyncConfigurationToJsonString(SyncConfiguration syncConfiguration); static void writeSyncConfigurationToJsonFile(SyncConfiguration syncConfigurations, String absolutePath); static boolean resourceFileExists(String path); static boolean customConfigExists(String path); static ClientConfiguration getClientConfiguration(String clientName);  }### Answer:
@Test public void parseJsonFileToSyncConfiguration_shouldCorrectlyParseSampleConfiguration() throws SyncException { SyncConfiguration result = parseJsonFileToSyncConfiguration(SAMPLE_SYNC_CONFIGURATION_PATH, RELATIVE); Assert.assertEquals(EXPECTED_CONFIGURATION, result); }
@Test(expected = SyncException.class) public void parseJsonFileToSyncConfiguration_shouldThrowJsonParseException() throws SyncException { parseJsonFileToSyncConfiguration(INCORRECT_SYNC_CONFIGURATION_PATH, RELATIVE); }