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