@Test
public void testGetSpanName() {

  @SuppressWarnings("unchecked")
  MethodDescriptor descriptor =
      MethodDescriptor.newBuilder()
          .setType(MethodType.SERVER_STREAMING)
          .setFullMethodName("google.bigtable.v2.Bigtable/ReadRows")
          .setRequestMarshaller(Mockito.mock(Marshaller.class))
          .setResponseMarshaller(Mockito.mock(Marshaller.class))
          .build();
  SpanName actualSpanName = GrpcCallableFactory.getSpanName(descriptor);
  assertThat(actualSpanName).isEqualTo(SpanName.of("Bigtable", "ReadRows"));
}