### Question:
DeflatedString { public String get() throws DataFormatException { return decode(encodedData); } DeflatedString();  DeflatedString(String value); static byte[] encode(String value); byte[] getCoded(); static String decode(byte[] data); boolean isCompressed(); void set(String value); String get(); @Override String toString();  }### Answer:
@Test public void testDecompressionPerformance() throws DataFormatException { final int testLoops = 500; String message = "Hello hotlips69, how are you doing? I like your profile. I'd like to get to know you."; DeflatedString d = new DeflatedString(message); float duration = 0f; for (int outerloop=0; outerloop<2; outerloop++ ) { long start = System.currentTimeMillis(); for (int count=0; count<testLoops; count++) { d.get(); } long delta = System.currentTimeMillis()-start; duration = (float)delta / testLoops; } System.out.println("time: " + duration + "ms per short string decompression"); }