### Question:
DefaultParameterizedType implements ParameterizedType { @Override public String toString() { return toString(this); } DefaultParameterizedType(Type ownerType, Class<?> rawType, Type[] actualTypeArguments); Type getOwnerType(); Type getRawType(); Type[] getActualTypeArguments(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static String toString(ParameterizedType type); static String toString(ParameterizedType type, ClassSerializer serializer);  }### Answer:
@Test public void toStringWithOwnerType() { ParameterizedType type = new DefaultParameterizedType(Map.class, Map.Entry.class, new Type[] {String.class, Integer.class}); assertEquals("java.util.Map$Entry<java.lang.String,java.lang.Integer>", type.toString()); }
@Test public void toStringWithOwnerType() { ParameterizedType type = new DefaultParameterizedType(Map.class, Map.Entry.class, new Type[] {String.class, Integer.class}); assertEquals("java.util.Map.java.util.Map$Entry<java.lang.String,java.lang.Integer>", type.toString()); }
@Test public void toStringWithRawType() { ParameterizedType type = new DefaultParameterizedType(null, String.class, null); assertEquals("java.lang.String", type.toString()); }
@Test public void toStringWithRawTypeAndActualTypeArgument() { ParameterizedType type = new DefaultParameterizedType(null, List.class, new Type[] {String.class}); assertEquals("java.util.List<java.lang.String>", type.toString()); }
@Test public void toStringWithRawTypeAndActualTypeArguments() { ParameterizedType type = new DefaultParameterizedType(null, Map.class, new Type[] {String.class, Integer.class}); assertEquals("java.util.Map<java.lang.String,java.lang.Integer>", type.toString()); }