### Question:
RedisServerRepository implements ServerRepository { @Override public <T extends Server> void addServer(T server, ServerMapper<T> mapper) { redisTransactions.runTransaction(jedis -> { jedis.hmset(this.redisHashName(server.getName()), mapper.serialize(server)); }); }  @Override T get(String serverName, ServerMapper<T> mapper); @Override void set(String serverName, ServerFieldType type, T value); @Override List<T> getAll(List<String> names, ServerMapper<T> mapper); @Override void incrementOnline(String serverName); @Override void decrementOnline(String serverName); @Override void addServer(T server, ServerMapper<T> mapper);  }### Answer:
@Test public void addServer() { Server server = addServer("name"); Server inRedis = repository.get("name", new StandardServerMapper()); assertEquals(server, inRedis); }