try {
final String property = "test.smoke.property";
context.putInstanceData(property, "42");
boolean status = context.getInstanceData(property).equals("42");
context.removeInstanceData(property);
if (!status) throw new ServiceFormattedException("Ambari Views instance data DB doesn't work properly", null);
} catch (WebApplicationException ex) {
throw ex;
} catch (Exception ex) {
throw new ServiceFormattedException(ex.getMessage(), ex);
}
}