@Test(expected = IOException.class)
public void exception() throws IOException {

  when(keySupplier.get()).thenReturn(KEY);
  doThrow(IOException.class).when(outputStreamFactory).apply(KEY);
  underTest.performBackup();
}