write embeddedExample as a test case