@Test
public void getOrAdd_mapTypeArrayValues() throws Exception {

  System.setProperty(MAP_SCHEMA_SUPPORT_ARRAYS_VALUES.systemPropertyName, "true");
  try {
    ApiMethodConfig methodConfig = getMethodConfig("getStringArrayMap");
    Schema schema = repo.getOrAdd(methodConfig.getReturnType(), config);
    assertThat(schema).isEqualTo(Schema.builder()
        .setName("Map_String_StringCollection")
        .setType("object")
        .setMapValueSchema(Field.builder()
            .setName(SchemaRepository.MAP_UNUSED_MSG)
            .setType(FieldType.ARRAY)
            .setArrayItemSchema(Field.builder()
                .setName(SchemaRepository.ARRAY_UNUSED_MSG)
                .setType(FieldType.STRING)
                .build())
            .build())
        .build());
  } finally {
    System.clearProperty(MAP_SCHEMA_SUPPORT_ARRAYS_VALUES.systemPropertyName);
  }
}