@Test (expected = NullPointerException.class)
public void testCreateRecordNullFactory() throws Exception {

    RecordOperationConfig config = new OperationConfig();
    User user = userFactory.createNew(USER_IRI);
    Set<String> names = new LinkedHashSet<>();
    names.add("Rick");
    names.add("Morty");
    Set<User> users = new LinkedHashSet<>();
    users.add(user);
    config.set(RecordCreateSettings.CATALOG_ID, localCatalogId.stringValue());
    config.set(RecordCreateSettings.RECORD_TITLE, "TestTitle");
    config.set(RecordCreateSettings.RECORD_DESCRIPTION, "TestTitle");
    config.set(RecordCreateSettings.RECORD_MARKDOWN, "#Title");
    config.set(RecordCreateSettings.RECORD_KEYWORDS, names);
    config.set(RecordCreateSettings.RECORD_PUBLISHERS, users);
    manager.createRecord(user, config, null);
}