### Question:
CapabilitiesResult { public PendingResult<Capabilities> toPendingResult() { return pendingResult; } CapabilitiesResult(PendingResult<Capabilities> pendingResult); static CapabilitiesResult fromFuture(Future<Capabilities> capabilitiesFuture); PendingResult<Capabilities> toPendingResult();  }### Answer:
@Test public void toPendingResult() throws Exception { CapabilitiesResult photoResult = new CapabilitiesResult(PENDING_RESULT); PendingResult<Capabilities> pendingResult = photoResult.toPendingResult(); assertSame( PENDING_RESULT, pendingResult ); }