@Test(expectedExceptions = JsonTransformationException.class)
public void testSaveAllStubConfigurationsWhenOccurAnDocumentTransformationException() throws JsonTransformationException,
        TransformerException {

    //GIVEN
    doThrow(new TransformerException("Test")).when(documentTransformer).transformToFile(jsonObject, TEST_PATH + "/" + 1 + STUB_CONFIG_JSON_POSTFIX, true);
    given(stubResourceHolder.getActualStubConfigJsonObject(TEST_KEY)).willReturn(jsonObject);
    //WHEN
    underTest.saveAllStubConfigurations(descriptors);
    //THEN
    verify(stubResourceHolder).getActualStubConfigJsonObject(TEST_KEY);
}