public NearCachePreloaderConfig setDirectory(String directory) {
        this.directory = checkNotNull(directory, "directory cannot be null!");
        return this;
    }
@Test
    public void setDirectory() {
        config.setDirectory("myParentDirectory");

        assertEquals("myParentDirectory", config.getDirectory());
    }