@Test
public void shouldProperlyMapServerProtocolToServerEntity() throws Exception {

  ServerProtocol serverProtocol = new ServerProtocol.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();
  ServerEntity serverEntity = serverProtocolMapper.transform(serverProtocol);
  assertThat(serverEntity).isNotNull();
  assertThat(serverEntity).isInstanceOf(ServerEntity.class);
  assertThat(serverEntity.ssid()).isEqualTo("WLAN_C33C");
  assertThat(serverEntity.ip()).isEqualTo("127.0.0.1");
  assertThat(serverEntity.hostname()).isEqualTo("iMac");
  assertThat(serverEntity.os()).isEqualTo("macOS Sierra");
  assertThat(serverEntity.version()).isEqualTo("2.4.9");
  assertThat(serverEntity.seed()).isEqualTo("34344343");
  assertThat(serverEntity.worldName()).isEqualTo("Za warudo");
  assertThat(serverEntity.playerName()).isEqualTo("Da beasto");
  assertThat(serverEntity.encodedWorldImage()).isEqualTo("base64image");
}