JUnit tests should be supported for shared (#13081)

Change-Id: Ia6243005fba362970cb199ad2aab217e56b5822a