@Test
    public void fileUtilsToBytesByFileExistsTest() {
        String path = HttpUtilsTest.class.getClassLoader().getResource("./").getPath();
        File file = new File(path + "application.yml");
        Assertions.assertDoesNotThrow(() -> HttpUtils.FileUtils.toBytes(file));
    }
HTTP request tool test {@link HttpUtils}.
shenyu-admin/src/test/java/org/apache/shenyu/admin/utils/HttpUtilsTest.java