[sample] toBytes with SOTestClass class inherts