OperationState implements Identifiable<String> { public V getResult() { return this.result; } OperationState(String opId, A operation, Date operationStart); String getLocator(); void setLocator(
      String locator); @Override boolean equals(Object o); @Override int hashCode(); @Override String getId(); A getOperation(); Date getOperationStart(); void setOperationEnd(Date operationEnd, V result, Throwable exception); Date getOperationEnd(); V getResult(); Throwable getThrowable();  }
@Test public void getResult() { OperationState<?, OperationResult> operationState = new OperationState<>(null, null, null); assertThat(operationState.getResult()).isNull(); OperationResult result = mock(OperationResult.class); operationState.setOperationEnd(null, result, null); assertThat(operationState.getResult()).isSameAs(result); }