@Test
public void putShouldThrowCheckedException() throws IOException {

  when(rw.put(entity1)).thenThrow(CAUSE);
  exception.expect(IOException.class);
  exception.expectCause(is((Throwable) CAUSE));
  sut.put(entity1);
}