when(_mockedMetaData.getColumnName(2)).thenReturn(_columnNames.get(1));
when(_mockedMetaData.getColumnName(3)).thenReturn(_columnNames.get(2));
when(_mockedMetaData.getColumnName(4)).thenReturn(_columnNames.get(3));
when(_mockedMetaData.getColumnName(5)).thenReturn(_columnNames.get(4));
_testStream = new CharArrayWriter();
<BUG>_allTerms = new GetTerms(_mockedDatabase, new PrintWriter(_testStream), "0", 0);
}</BUG>
@Test
public void testReadAllTermsAndGenerateJson_oneRow() throws SQLException {
when(_mockedResultSet.next()).thenReturn(true).thenReturn(false);

when(_mockedMetaData.getColumnName(2)).thenReturn(_columnNames.get(1));
when(_mockedMetaData.getColumnName(3)).thenReturn(_columnNames.get(2));
when(_mockedMetaData.getColumnName(4)).thenReturn(_columnNames.get(3));
when(_mockedMetaData.getColumnName(5)).thenReturn(_columnNames.get(4));
_testStream = new CharArrayWriter();
_allTerms = new GetTerms(_mockedDatabase, new PrintWriter(_testStream), 0, 0);
}
@Test
public void testReadAllTermsAndGenerateJson_oneRow() throws SQLException {
when(_mockedResultSet.next()).thenReturn(true).thenReturn(false);
