@Test public void testGetHandle() throws Exception { // setup GCPast gcPast = mock(GCPast.class); when(gcPast.getEnvironment()).thenReturn(mockEnvironment); // act GCPastContentHandle contentHandle = content.getHandle(gcPast, 1234); // assert assertNotNull(contentHandle); }
public GCPastContentHandle getHandle(GCPast local, long expiration) { return new AggregateHandle(local.getLocalNodeHandle(), myId, getVersion(), expiration); }