@Test
public void testGetDataWithoutAllocationsInfo() throws Exception {

  MemoryData.MemorySample memSample = MemoryData.MemorySample.newBuilder().setTimestamp(1)
    .setMemoryUsage(Memory.MemoryUsageData.newBuilder().setJavaMem(1)).build();
  MemoryData memData = MemoryProfiler.MemoryData.newBuilder().addMemSamples(memSample).build();
  myService.setMemoryData(memData);
  StreamObserver<MemoryData> observer = mock(StreamObserver.class);
  myProxy.getData(MemoryRequest.newBuilder().setSession(SESSION1).build(), observer);
  verify(observer, times(1)).onNext(memData);
  verify(observer, times(1)).onCompleted();
}