@Test
public void testSetPersistentStorageDirectoryFailed() {

    final Configuration c = new Configuration();
    String userDir = System.getProperty("user.dir");
    System.setProperty("user.dir", "");
    assertThatThrownBy(() -> c.setPersistentStorageDirectory(""))
            .isInstanceOf(IllegalArgumentException.class)
    .hasMessage("empty \"persistentStorageDirectory\" config and \"user.dir\" environment property");
    System.setProperty("user.dir", userDir);
}