[add adaptor support and sample test case]