@Test
public void getOrAdd_mapSubType() throws Exception {

  Schema expectedSchema = Schema.builder()
      .setName("Map_String_String")
      .setType("object")
      .setMapValueSchema(Field.builder()
          .setName(SchemaRepository.MAP_UNUSED_MSG)
          .setType(FieldType.STRING)
          .build())
      .build();
  assertThat(repo.getOrAdd(getMethodConfig("getMyMap").getReturnType(), config))
      .isEqualTo(expectedSchema);
  assertThat(repo.getOrAdd(getMethodConfig("getMySubMap").getReturnType(), config))
      .isEqualTo(expectedSchema);
}