@Test
public void testBindServiceContainsAllMethods() throws Exception {

  ServerServiceDefinition serverDefinition = myProxy.getServiceDefinition();
  Collection<MethodDescriptor<?, ?>> allMethods = MemoryServiceGrpc.getServiceDescriptor().getMethods();
  Set<MethodDescriptor<?, ?>> definedMethods =
    serverDefinition.getMethods().stream().map(method -> method.getMethodDescriptor()).collect(Collectors.toSet());
  assertThat(definedMethods.size()).isEqualTo(allMethods.size());
  definedMethods.containsAll(allMethods);
}