public QueryCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat) {
        checkNotNull(inMemoryFormat, "inMemoryFormat cannot be null");
        checkFalse(inMemoryFormat == InMemoryFormat.NATIVE, "InMemoryFormat." + inMemoryFormat + " is not supported.");

        this.inMemoryFormat = inMemoryFormat;
        return this;
    }
@Test(expected = NullPointerException.class)
    public void testSetInMemoryFormat_throwsException_whenNull() {
        QueryCacheConfig config = new QueryCacheConfig();
        config.setInMemoryFormat(null);
    }