ProcessVariablesMapTypeRegistry { public static Class<?> forType(String type) { return forType(type, ObjectValue.class); }  static Class<?> forType(String type); static Class<?> forType(String type, Class<?> defaultType); static String forClass(Class<?> clazz); static boolean isScalarType(Class<?> clazz); static Optional<Class<?>> getContainerType(Class<?> clazz,
                                                      Object value); static boolean canConvert(Object value); static boolean containsType(String type); static final String OBJECT_TYPE_KEY; }
@Test public void forType_should_returnDefaultValue_whenTypeIsUnknown() { String type = "unknown"; Class<?> relatedClass = ProcessVariablesMapTypeRegistry.forType(type, String.class); assertThat(relatedClass).isEqualTo(String.class); }