@Test
public void testEmptyModel() {

    final HasPackageName model = new HasPackageName() {
        private String packageName = "";
        @Override
        public String getPackageName() {
            return packageName;
        }
        @Override
        public void setPackageName(final String packageName) {
            this.packageName = packageName;
        }
    };
    final StringBuilder sb = new StringBuilder();
    PackageNameWriter.write(sb,
                            model);
    final String drl = sb.toString();
    assertNotNull(drl);
    assertTrue(drl.isEmpty());
}