public void testFieldInit() throws Exception {
StatefulKnowledgeSession ksession = genSession("test_ExtFieldInit.drl");
FactType test = ksession.getKnowledgeBase().getFactType("org.drools.compiler", "MyBean3");
Object x = test.newInstance();
assertNotNull(x);
assertEquals(12,test.get(x,"fieldint"));
assertEquals("xyz",test.get(x,"fieldstr"));
assertEquals(3.23,test.get(x,"fielddbl"));
assertEquals(0,test.get(x,"field0"));
assertEquals(0.0f,test.get(x,"field1"));
assertEquals(1.2f,test.get(x,"fieldflt"));
short sht = 2;
assertEquals(sht,test.get(x,"fieldsht"));
assertEquals(0,test.get(x,"field2"));
byte byt = 1;
assertEquals(byt,test.get(x,"fieldbyt"));
assertEquals(true,test.get(x,"fieldbln"));
assertEquals('x',test.get(x,"fieldchr"));
assertEquals(9999L,test.get(x,"fieldlng"));
System.out.println(x);
}