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