### Question:
ContentResponseTransformer implements ResponseTransformer { @Override public String render(Object model) { if (model instanceof Content) { Content content = (Content) model; return new String(content.getBody()); } else if (model != null) { return model.toString(); } else { return null; } }  @Override String render(Object model);  }### Answer:
@Test public void renderContent() { Content content = new Content("application/json", "Hallo Welt".getBytes()); assertEquals("Hallo Welt", new ContentResponseTransformer().render(content)); }
@Test public void renderObject() { assertEquals("1337", new ContentResponseTransformer().render(1337)); }
@Test public void renderNull() { assertNull(new ContentResponseTransformer().render(null)); }