Unit test for Pojo with generics type in constructor parameters