### Question:
Write extends AbstractWrite<Irrelevant> { public Write(UUID svc, UUID chr, byte[] data, int timeoutMs) { super(svc, chr, data, timeoutMs); } Write(UUID svc, UUID chr, byte[] data, int timeoutMs);   }### Answer:
@Test public void write_success_after_retry() { prepareWrite(20, 128); when(peripheral.write(any(), any(), any())).thenReturn(Completable.error(new Exception("TEST"))); writeResultTestObserver = write .executeWithResult(peripheral) .retryWhen(errors -> errors .delay(1000, TimeUnit.MILLISECONDS)) .test(); testScheduler.advanceTimeBy(1000, TimeUnit.MILLISECONDS); when(peripheral.write(any(), any(), any())).thenReturn(writeCompletable); testScheduler.advanceTimeBy(1000, TimeUnit.MILLISECONDS); writeCompletable.onComplete(); verifyChunks(20, 128, 2); writeResultTestObserver.assertComplete(); }