### Question:
ContinuationTransactionMap { public T getContinuationForDevice(User user, Device device) throws ElementNotFoundException { T element = continuations.get(new Key(user, device)); if (element == null) { throw new ElementNotFoundException(); } return element; } @Inject @VisibleForTesting  ContinuationTransactionMap(); T getContinuationForDevice(User user, Device device); boolean putContinuationForDevice(User user, Device device, T continuation); void delete(User user, Device device);  }### Answer:
@Test public void testGetContinuationForDevice() throws ElementNotFoundException { TestingContinuation expectedContinuation = new TestingContinuation(); testee.putContinuationForDevice(user, device, expectedContinuation); assertThat(testee.getContinuationForDevice(user, device)).isEqualTo(expectedContinuation); }
@Test (expected=ElementNotFoundException.class) public void testGetContinuationForDeviceElementNotFound() throws ElementNotFoundException { testee.getContinuationForDevice(user, device); }