DBMessage implements Serializable { public String getCode() { return code; } DBMessage(String code, String language, String country,
            String variant, String message); String getCode(); String getLanguage(); String getCountry(); String getVariant(); String getMessage();  }
@Test public void testGetCode01() throws Exception { DBMessage db = new DBMessage(null, null, null, null, null); ReflectionTestUtils.setField(db, "code", "abc"); String returnCode = db.getCode(); assertEquals("abc", returnCode); }