    @Test
    public void invokeTest() throws IOException {

        Context context = new MockContext();
        Handler handler = new Handler();

        Request request = new Request();
        request.setInputImageUrl("https://djl-ai.s3.amazonaws.com/resources/images/kitten.jpg");
        Gson gson = new Gson();
        byte[] buf = gson.toJson(request).getBytes(StandardCharsets.UTF_8);

        InputStream is = new ByteArrayInputStream(buf);
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        handler.handleRequest(is, os, context);
        String result = os.toString(StandardCharsets.UTF_8.name());

        Type type = new TypeToken<List<Classifications.Classification>>() {}.getType();
        List<Classifications.Classification> list = gson.fromJson(result, type);
        Assert.assertNotNull(list);
        Assert.assertEquals(list.get(0).getClassName(), "n02123045 tabby, tabby cat");
    }