### Question:
DbfRow { public boolean getBoolean(String fieldName) throws DbfException { Boolean value = (Boolean) get(fieldName); return value != null && value; } DbfRow(DbfHeader header, Charset defaultCharset, Object[] row); BigDecimal getBigDecimal(String fieldName); Date getDate(String fieldName); String getString(String fieldName); String getString(String fieldName, Charset charset); boolean getBoolean(String fieldName); int getInt(String fieldName); short getShort(String fieldName); byte getByte(String fieldName); long getLong(String fieldName); float getFloat(String fieldName); double getDouble(String fieldName); Object getObject(String fieldName);  }### Answer:
@Test public void getBoolean() { when(header.getFieldIndex("column 3")) .thenReturn(2); DbfRow dbfRow = createRow(true, false, null); assertEquals(true, dbfRow.getBoolean(COLUMN_1)); assertEquals(false, dbfRow.getBoolean(COLUMN_2)); assertEquals(false, dbfRow.getBoolean("column 3")); }