import org.junit.Test;
import sk.tomsik68.mclauncher.api.common.mc.IMinecraftInstance;
import sk.tomsik68.mclauncher.api.servers.ServerInfo;
import sk.tomsik68.mclauncher.impl.common.Platform;
import sk.tomsik68.mclauncher.impl.common.mc.VanillaMinecraftInstance;

public class TestVanillaServerStorage {

    @Test
    public void test(){
        IMinecraftInstance mc = new VanillaMinecraftInstance(Platform.getCurrentPlatform().getWorkingDirectory());
        try {
            ServerInfo[] servers = mc.getServerStorage().loadServers();
            for (ServerInfo server : servers) {
                System.out.println(server.getName() + " - " + server.getIP() + ":" + server.getPort());
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}

Test unit for VanillaServerStorage