@Test
public void testChangePropertyType()
{
JavaClassSource source = Roaster.create(JavaClassSource.class).setName("MyClass");
PropertySource<JavaClassSource> property = source.addProperty(Date.class, "myDate");
property.setType(Timestamp.class);
Assert.assertEquals("Timestamp", source.getField("myDate").getType().getName());
Assert.assertEquals("Timestamp", source.getMethod("getMyDate").getReturnType().getName());
Assert.assertNotNull(source.getMethod("setMyDate", Timestamp.class));