/**
* Connection fails after three retries
*/
@Test(expected = Exception.class)
public void feedbackWithErrorTwice() {
SocketFactory sf = mockClosedThenOpenSocket(null, simpleStream, true, 3);
ApnsFeedbackConnection connection = new ApnsFeedbackConnection(sf, "localhost", 80);
connection.DELAY_IN_MS = 0;
checkParsedSimple(connection.getInactiveDevices());
}