Fix code-examples tests
These tests can’t run in CI for technical reasons (T210503), so they
broke without us noticing it – the Java code was updated in change
Ie6d24be640 (commit 7431b4bdd9, T259900), and the mapframe code was
added without test reference in change Ifc95e52ecf (commit d1909e5ca4).
Change-Id: I167800f0ad93688b132458c9bd3a98744861516a