### Question:
SQLRebuilder implements Rebuilder { @Override public void start(Map<String, String> options) throws Exception { blankExistingTables(); try { m_server = Rebuild.getServer(); ConnectionPoolManager cpm = (ConnectionPoolManager) m_server .getModule("org.fcrepo.server.storage.ConnectionPoolManager"); if (cpm == null) { throw new ModuleInitializationException("ConnectionPoolManager not loaded.", "ConnectionPoolManager"); } m_connectionPool = cpm.getPool(); ensureFedoraTables(); m_now = System.currentTimeMillis(); startStatus(m_now); m_context = ReadOnlyContext.getContext("utility", "fedoraAdmin", "", ReadOnlyContext.DO_OP); ILowlevelStorage llstore = (ILowlevelStorage) m_server .getModule("org.fcrepo.server.storage.lowlevel.ILowlevelStorage"); try { llstore.rebuildObject(); llstore.rebuildDatastream(); } catch (LowlevelStorageException e) { e.printStackTrace(); } } catch (InitializationException ie) { logger.error("Error initializing", ie); throw ie; } }  @Override String getAction(); @Override boolean shouldStopServer(); @Override void setServerConfiguration(ServerConfiguration serverConfig); @Override void setServerDir(File serverBaseDir); @Override void init(); @Override Map<String, String> getOptions(); @Override void start(Map<String, String> options); static List<String> getExistingTables(Connection conn); void blankExistingTables(); void ensureFedoraTables(); @Override void addObject(DigitalObject obj); @Override void finish(); static final String CREATE_REBUILD_STATUS; static final String UPDATE_REBUILD_STATUS; static final String DBSPEC_LOCATION; }### Answer:
@Test public void testBadRebuild() throws Exception { test.start(new HashMap<String, String>()); verify(mockCreateStmt).setBoolean(1, false); verify(mockCreateStmt).execute(); verify(mockUpdateStmt, never()).setBoolean(1, true); verify(mockUpdateStmt, never()).execute(); }