Since withTagValue needs an instance of org.hamcrest.Matcher
as an argument, we can create a simple one using the Matcher.is method
to find views with a certain tag in your expresso test:
String tagValue = "lorem impsum";
ViewInteraction viewWithTagVI = onView(withTagValue(is((Object) tagValue)));