### Question:
JedisNodeClient implements JedisClient { @Override public byte[] get(String key) throws UnsupportedEncodingException { try(Jedis jedis = this.jedisPool.getResource()) { return jedis.get(key.getBytes(Protocol.CHARSET)); } } JedisNodeClient(JedisPool jedisPool); @Override Set<String> getSessions(String sessionsKey); @Override void del(String sessionsKey, String key); @Override Integer count(String sessionsKey); @Override byte[] get(String key); @Override void set(String key, String sessionsKey, byte[] session, int timeout); @Override void clean(String sessionsKey); @Override void close();  }### Answer:
@Test public void get() throws UnsupportedEncodingException { byte[] expected = "result".getBytes(); when(this.jedis.get("key".getBytes(Protocol.CHARSET))).thenReturn(expected); byte[] result = this.jedisNodeClient.get("key"); assertEquals(expected, result); verify(this.jedis, times(1)).get("key".getBytes(Protocol.CHARSET)); verify(this.jedis, times(1)).close(); }