### Question:
TypeMappings { public boolean isRegistered(Type type) { return queryTypes.containsKey(type.getFullName()); }  Type getTemplateType(Type type, EntityType model, boolean raw); Type getTemplateType(Type type, EntityType model, boolean raw, boolean rawParameters, boolean extend); Type getExprType(Type type, EntityType model, boolean raw); Type getExprType(Type type, EntityType model, boolean raw, boolean rawParameters, boolean extend); Type getPathType(Type type, EntityType model, boolean raw); Type getPathType(Type type, EntityType model, boolean raw, boolean rawParameters, boolean extend); Type getQueryType(Type type, EntityType model, Type exprType, boolean raw,
            boolean rawParameters, boolean extend); @SuppressWarnings("rawtypes") void register(TypeCategory category,
            @Nullable Class<? extends Expression> expr,
            @Nullable Class<? extends Path> path,
            @Nullable Class<? extends TemplateExpression> template); void register(Type type, Type queryType); boolean isRegistered(Type type);  }### Answer:
@Test public void isRegistered() { TypeMappings typeMappings = new JavaTypeMappings(); typeMappings.register(new ClassType(Double[].class), new ClassType(Point.class)); assertTrue(typeMappings.isRegistered(new ClassType(Double[].class))); }