### Question:
InProcessBatchManager implements IBatchManager { public IBatch addBatch(String name, String group, String uuid) { IBatch b = new Batch(uuid, name, group); ((Batch) b).setZombieInterval(this.zombieInterval); int currentPosition = runningBatches.indexOf(b); if (currentPosition >= 0) { b = runningBatches.get(currentPosition); } else { getMonitor(b); runningBatches.add(b); } return b; }  IBatch addBatch(String name, String group, String uuid); void batchEnd(Batch batch); List<IBatch> getBatches(String group, String name); Properties getConfiguration(); List<IBatch> getErrorBatches(); List<IBatch> getFinishedBatches(); IBatchProgressMonitor getMonitor(IBatch batch); List<IBatch> getRunningBatches(); void init(); void removeAllBatches(int scope); void removeBatch(String uuid); void setConfiguration(Properties configuration);  }### Answer:
@Test public void testAddBatch() { InProcessBatchManager bm = new InProcessBatchManager(); bm.setConfiguration(new Properties()); IBatch b1 = bm.addBatch("name1", "group1", "1"); IBatch b2 = bm.addBatch("name2", "group2", "1"); assertSame(b1, b2); }