public void cache_delete_integer() {
ModelLoader loaded = generateJava("cache_delete_integer");
ModelWrapper model = loaded.newModel("Model");
assertThat(model.unwrap(), is(instanceOf(ThunderGateCacheSupport.class)));
ThunderGateCacheSupport support = (ThunderGateCacheSupport) model.unwrap();
model.set("logical_delete_flag", (byte) 1);
assertThat(support.__tgc__Deleted(), is(true));
model.set("logical_delete_flag", (byte) 0);
assertThat(support.__tgc__Deleted(), is(false));
model.set("logical_delete_flag", (byte) 2);
assertThat(support.__tgc__Deleted(), is(false));
model.setOption("logical_delete_flag", null);
assertThat(support.__tgc__Deleted(), is(false));
}