### Question:
DeflateEncoderDecoder { public InputStream inflateToken(byte[] deflatedToken) throws DataFormatException { return CompressionUtils.inflate(deflatedToken); }  InputStream inflateToken(byte[] deflatedToken); byte[] deflateToken(byte[] tokenBytes); byte[] deflateToken(byte[] tokenBytes, boolean nowrap); byte[] deflateToken(byte[] tokenBytes, int level, boolean nowrap);  }### Answer:
@Test(expected = DataFormatException.class) public void testInvalidContent() throws Exception { DeflateEncoderDecoder inflater = new DeflateEncoderDecoder(); inflater.inflateToken("invalid_grant".getBytes()); }
@Test(expected = DataFormatException.class) public void testInvalidContentAfterBase64() throws Exception { DeflateEncoderDecoder inflater = new DeflateEncoderDecoder(); byte[] base64decoded = Base64Utility.decode("invalid_grant"); inflater.inflateToken(base64decoded); }