### Question:
LineOfBearingDetector implements CellDetector<LobColumnResults> { @Override public ValuesWithConfidence<LobColumnResults> detect(CellSampler sampler) { LobColumnResults ecr = new LobColumnResults(); for (int headerIndex = 0; headerIndex < sampler.getHeaderCells().size(); headerIndex++) { String colName = sampler.getHeaderCells().get(headerIndex); for (String lob : myLOBColumnNames) { if (lob.equalsIgnoreCase(colName.toLowerCase())) { LineOfBearingColumn lobCol = new LineOfBearingColumn(colName, headerIndex); ecr.setLineOfBearingColumn(lobCol); break; } } } return new ValuesWithConfidence<LobColumnResults>(ecr, Math.max(0f, ecr.getConfidence())); } LineOfBearingDetector(PreferencesRegistry prefsRegistry); @Override ValuesWithConfidence<LobColumnResults> detect(CellSampler sampler); List<String> getLineOfBearingColumnNames();  }### Answer:
@Test public void testInValidLobColumnms() { LineOfBearingDetector lobDetector = new LineOfBearingDetector(LocationTestUtils.getPrefsRegistry()); Character delimiter = Character.valueOf(','); Character quote = Character.valueOf(' '); List<String> rows = CsvTestUtils.createBasicDelimitedData(String.valueOf(delimiter)); ListCellSampler lcs = new ListCellSampler(rows, delimiter, quote); ValuesWithConfidence<LobColumnResults> result = lobDetector.detect(lcs); Assert.assertTrue(result.getBestConfidence() < 1f); Assert.assertEquals(null, result.getBestValue().getLineOfBearingColumn()); }