/* Ċ Ġ* ĠCopyright Ġ 2 0 2 1 ĠAmazon . com , ĠInc . Ġor Ġits Ġaffiliates . ĠAll ĠRights ĠReserved . Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "). Ċ Ġ* ĠYou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠA Ġcopy Ġof Ġthe ĠLicense Ġis Ġlocated Ġat Ċ Ġ* Ċ Ġ* Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* Ġor Ġin Ġthe Ġ" license " Ġfile Ġaccompanying Ġthis Ġfile . ĠThis Ġfile Ġis Ġdistributed Ċ Ġ* Ġon Ġan Ġ" AS ĠIS " ĠBASIS , ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ċ Ġ* Ġexpress Ġor Ġimplied . ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ċ Ġ* Ġpermissions Ġand Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . amazon . opend ist ro fore lastic search . index management . rollup . action filter Ċ Ċ import Ġcom . amazon . opend ist ro fore lastic search . index management . rollup . random IS M Field Caps Ċ import Ġorg . elasticsearch . action . field caps . Field Capabilities Response Ċ import Ġorg . elasticsearch . test . EST est Case Ċ Ċ class ĠSer De Tests Ġ: ĠEST est Case () Ġ{ ĊĊĠĠĠ Ġfun Ġ` test Ġround Ġtrip Ġempty `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfield Caps Ġ= ĠField Capabilities Response ( array Of (), Ġmap Of ()) ĊĠĠĠĠĠĠĠ Ġval Ġround Trip From Field Caps Ġ= ĠIS M Field Capabilities Response . from Field Capabilities Response ( field Caps ). to Field Capabilities Response () ĊĠĠĠĠĠĠĠ ĠassertEquals (" Round Ġtri pping Ġdidn 't Ġwork ", Ġfield Caps , Ġround Trip From Field Caps ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` test Ġround Ġtrip Ġnone mpty `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġis m Field Caps Ġ= Ġrandom IS M Field Caps () ĊĠĠĠĠĠĠĠ Ġval Ġfield Caps Ġ= Ġis m Field Caps . to Field Capabilities Response () ĊĠĠĠĠĠĠĠ Ġval Ġround Tri pped Field Caps Ġ= ĠIS M Field Capabilities Response . from Field Capabilities Response ( field Caps ). to Field Capabilities Response () ĊĠĠĠĠĠĠĠ ĠassertEquals (" Round Ġtri pping Ġdidn 't Ġwork ", Ġfield Caps , Ġround Tri pped Field Caps ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" Expected Ġindices Ġare Ġdifferent ", Ġis m Field Caps . indices . size , Ġround Tri pped Field Caps . indices . size ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" Expected Ġresponse Ġmap Ġis Ġdifferent ", Ġis m Field Caps . response Map . size , Ġround Tri pped Field Caps . get (). size ) ĊĠĠĠ Ġ} Ċ } Ċ