### Question:
AlphaSimilarityProc extends AlgoBaseProc<ALGO, SimilarityAlgorithmResult, CONFIG> { @Override public Pair<CONFIG, Optional<String>> processInput(Object graphNameOrConfig, Map<String, Object> configuration) { if (graphNameOrConfig instanceof String) { throw new IllegalArgumentException("Similarity algorithms do not support named graphs"); } else if (graphNameOrConfig instanceof Map) { Map<String, Object> configMap = (Map<String, Object>) graphNameOrConfig; graphNameOrConfig = SIMILARITY_FAKE_GRAPH_NAME; configuration = configMap; configuration.remove(NODE_QUERY_KEY); configuration.remove(RELATIONSHIP_QUERY_KEY); configuration.remove(NODE_PROJECTION_KEY); configuration.remove(RELATIONSHIP_PROJECTION_KEY); GraphStoreCatalog.set( ImmutableGraphCreateFromStoreConfig.of( username(), graphNameOrConfig.toString(), NodeProjections.ALL, RelationshipProjections.ALL ), new NullGraphStore(databaseId()) ); } try { return super.processInput(graphNameOrConfig, configuration); } catch (RuntimeException e) { removeGraph(); throw e; } }  @Override Pair<CONFIG, Optional<String>> processInput(Object graphNameOrConfig, Map<String, Object> configuration); static final String SIMILARITY_FAKE_GRAPH_NAME; }### Answer:
@Test void shouldNotLoadAnything() { applyOnProcedure(proc -> { Pair<? extends SimilarityConfig, Optional<String>> input = proc.processInput( minimalViableConfig(), Map.of() ); assertEquals(SIMILARITY_FAKE_GRAPH_NAME, input.getTwo().get()); assertTrue(GraphStoreCatalog.exists(getUsername(), db.databaseId(), SIMILARITY_FAKE_GRAPH_NAME)); GraphStoreWithConfig graphStoreWithConfig = GraphStoreCatalog.get( getUsername(), db.databaseId(), SIMILARITY_FAKE_GRAPH_NAME ); GraphStore graphStore = graphStoreWithConfig.graphStore(); assertTrue(graphStore instanceof NullGraphStore); assertTrue(graphStore.nodeLabels().isEmpty()); assertTrue(graphStore.relationshipTypes().isEmpty()); assertTrue(graphStore.getGraph(Set.of(), Set.of(), Optional.empty()) instanceof NullGraph); }); }