@Test
public void testLegacyAllocationTrackingReturningNullData() throws Exception {

  int time1 = 5;
  int time2 = 10;
  // Enable a tracking session on Process 1
  myProxy.trackAllocations(
    TrackAllocationsRequest.newBuilder().setSession(SESSION1).setEnabled(true).setRequestTime(time1).build(),
    mock(StreamObserver.class));
  // Disable a tracking session on Process 1
  myProxy.trackAllocations(
    TrackAllocationsRequest.newBuilder().setSession(SESSION1).setEnabled(false).setRequestTime(time2).build(),
    mock(StreamObserver.class));
  // Mock completion of the parsing process and returning of null data;
  myTracker.setReturnNullTrackingData(true);
  myTracker.getParsingWaitLatch().countDown();
  myTracker.getParsingDoneLatch().await();
  assertThat(myProxyBytesCache.get(Integer.toString(time1))).isEqualTo(ByteString.EMPTY);
}