@Test (expected = SerDeException.class)
public void testHighFailRatio1() throws Throwable {

    AbstractDeserializer serDe = getTestSerDe();
    // Data
    Text goodLine = new Text(testLogLine);
    Text badLine = new Text("A really bad line");
    Object row;
    // Deserialize good line
    row = serDe.deserialize(goodLine);
    assertNotNull(row);
    // Deserialize bad line
    row = serDe.deserialize(badLine);
    assertNull(row);
    for (int i = 0; i < 999; i++) {
        // Deserialize good line
        row = serDe.deserialize(goodLine);
        assertNotNull(row);
    }
    for (int i = 0; i < 99; i++) {
        // Deserialize bad line
        row = serDe.deserialize(badLine);
        assertNull(row);
        // Deserialize good line
        row = serDe.deserialize(goodLine);
        assertNotNull(row);
    }
}