public NearCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat) {
        this.inMemoryFormat = isNotNull(inMemoryFormat, "inMemoryFormat");
        return this;
    }
@Test(expected = IllegalArgumentException.class)
    public void testSetInMemoryFormat_withString_whenNull() {
        config.setInMemoryFormat((String) null);
    }