@Test
public void shouldProperlyMapServerEntityToServerProtocol() throws Exception {

  ServerEntity serverEntity = ServerEntity.builder()
      .ssid("WLAN_C33C")
      .ip("127.0.0.1")
      .hostname("iMac")
      .os("macOS Sierra")
      .version("2.4.9")
      .seed("34344343")
      .worldName("Za warudo")
      .playerName("Da beasto")
      .encodedWorldImage("base64image")
      .build();
  ServerProtocol serverProtocol = serverProtocolMapper.transform(serverEntity);
  assertThat(serverProtocol).isNotNull();
  assertThat(serverProtocol).isInstanceOf(ServerProtocol.class);
  assertThat(serverProtocol.getSsid()).isEqualTo("WLAN_C33C");
  assertThat(serverProtocol.getIp()).isEqualTo("127.0.0.1");
  assertThat(serverProtocol.getHostname()).isEqualTo("iMac");
  assertThat(serverProtocol.getOs()).isEqualTo("macOS Sierra");
  assertThat(serverProtocol.getVersion()).isEqualTo("2.4.9");
  assertThat(serverProtocol.getSeed()).isEqualTo("34344343");
  assertThat(serverProtocol.getWorldName()).isEqualTo("Za warudo");
  assertThat(serverProtocol.getPlayerName()).isEqualTo("Da beasto");
  assertThat(serverProtocol.getEncodedWorldImage()).isEqualTo("base64image");
}