@Test
    public void testCustomLoader() {
        AssetManager am = new DesktopAssetManager(true);
        am.registerLocator("/", ClasspathLocator.class);
        am.registerLoader(TextLoader.class, "fnt");
        String result = (String)am.loadAsset("Interface/Fonts/Console.fnt");
        Assert.assertTrue(result.startsWith("info face=\"Lucida Console\" size=11 bold=0 italic=0 charset=\"\" unicode=1" +
                " stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,1 outline=0"));
    }
Demonstrates loading a file from a custom {@link AssetLoader}
jme3-core/src/test/java/com/jme3/asset/TestLocators.java