Generic, mocking and test

Generic by void*. Mock stub. Ref struct