RedisClient implements Client { @Override public void flushdb() throws ConnectionException, IOException { runVoidCommand(RedisCommands.FLUSHDB); } RedisClient(final RedisCommandExecutor redisCommandExecutor,
      final RedisCommandResult redisCommandResult);  RedisClient(final Connection connection);  RedisClient();  RedisClient(final String host);  RedisClient(final String host, final int port); @Override void ping(); @Override void set(final byte[] key, final byte[] value); @Override void set(final byte[] key, final byte[] value, final long expiryInMillis); byte[] longToBytes(final long longToBeConverted); @Override byte[] get(final byte[] key); @Override byte[] expire(final byte[] key); @Override void flushdb(); @Override int dbsize();  }
@Test public void flushdb() throws ConnectionException, IOException { doReturn("OK").when(commandResult).getStatus(); redisClient.flushdb(); verify(redisClient).runVoidCommand(RedisCommands.FLUSHDB); verify(commandExecutor).execute(RedisCommands.FLUSHDB); }