@@ -0,0 +1,1395 @@
+package com.nika.web.java.rest;%0A%0Aimport javax.ws.rs.core.Response;%0Aimport org.json.JSONObject;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class JSONBasedReverserTest %7B%0A%0A    private JSONBasedReverser reverser;%0A%0A    @Before%0A    public void setUp() %7B%0A        reverser = new JSONBasedReverser();%0A    %7D%0A%0A    @Test%0A    public void testNoWord() %7B%0A        JSONObject expected = new JSONObject();%0A        expected.put(%22original%22, %22ANKARA%22);%0A        expected.put(%22reversed%22, %22ARAKNA%22);%0A        Response response = reverser.defaultReverser();%0A        Assert.assertEquals(response.getStatus(), 200);%0A        JSONObject actual = new JSONObject((String) response.getEntity());%0A        Assert.assertEquals(actual.get(%22original%22), expected.get(%22original%22));%0A        Assert.assertEquals(actual.get(%22reversed%22), expected.get(%22reversed%22));%0A    %7D%0A%0A    @Test%0A    public void testWord() %7B%0A        JSONObject expected = new JSONObject();%0A        expected.put(%22original%22, %22foobar%22);%0A        expected.put(%22reversed%22, %22raboof%22);%0A        Response response = reverser.reverser(%22foobar%22);%0A        Assert.assertEquals(response.getStatus(), 200);%0A        JSONObject actual = new JSONObject((String) response.getEntity());%0A        Assert.assertEquals(actual.get(%22original%22), expected.get(%22original%22));%0A        Assert.assertEquals(actual.get(%22reversed%22), expected.get(%22reversed%22));%0A    %7D%0A%7D%0A

Add JSON reverser unit tests