@Test
public void testResourceException() {

    ResourceException exception = new ResourceException(200);
    assertEquals(exception.getCode(), 200);
    assertEquals(exception.getData(), "OK");
    assertEquals(exception.getData(String.class), "OK");
}