def METHOD_NAME(testapp, library_schema_13, library_schema_capped_mRNA):
    # https://encodedcc.atlassian.net/browse/ENCD-5368
    testapp.post_json('/library', library_schema_13, status=422)
    library_schema_13.update({'nucleic_acid_term_name': 'RNA'})
    testapp.post_json('/library', library_schema_13, status=201)
    # https://encodedcc.atlassian.net/browse/ENCD-5647
    testapp.post_json('/library', library_schema_capped_mRNA, status=201)
    library_schema_capped_mRNA.update({'depleted_in_term_name': ['capped mRNA', 'polyadenylated mRNA']})
    testapp.post_json('/library', library_schema_capped_mRNA, status=422)