Bug 417142 - [Viewers] Update Viewer JUnit tests to use generics

-fixed type error

Change-Id: I4336615fd690810e8422e96edef5eea805e9e683
Signed-off-by: Hendrik Still <hendrik.still@gammas.de>