def METHOD_NAME(self, prefs_stub, config_storage):
    prefs_stub.set_server_configs(
        [
            {
                "id": "myid1",
                "name": "MyServer1",
                "address": "127.0.0.1:4412",
                "devices": [
                    {"id": "cpu0", "name": "CPU0", "enabled": False},
                    {"id": "gpu1", "name": "MyCoolGPU", "enabled": True},
                ],
            }
        ]
    )
    servers = config_storage.get_servers()
    assert 1 == len(servers)
    srv = servers[0]
    assert isinstance(srv, types.ServerConfig)
    assert "MyServer1" == srv.name
    assert "127.0.0.1:4412" == srv.address
    assert 2 == len(srv.devices)
    fst, snd = srv.devices
    assert "cpu0" == fst.id
    assert "CPU0" == fst.name
    assert not fst.enabled
    assert "gpu1" == snd.id
    assert "MyCoolGPU" == snd.name
    assert snd.enabled