@Test public void testAutoIndexesReportReadOnly() { newTransaction(); AutoIndexer<Node> autoIndexer = graphDb.index().getNodeAutoIndexer(); try ( Transaction tx = graphDb.beginTx() ) { assertFalse( autoIndexer.getAutoIndex().isWriteable() ); tx.success(); } autoIndexer.startAutoIndexingProperty( "test_uuid" ); autoIndexer.setEnabled( true ); try ( Transaction tx = graphDb.beginTx() ) { assertFalse( autoIndexer.getAutoIndex().isWriteable() ); tx.success(); } }