@Test
public void testCopyPropterties() throws Exception {

    TestBean bean = new TestBean();
    bean.setAlias("aaa:1.0.0");
    List<TestSubBean> subBeans = new ArrayList<TestSubBean>();
    TestSubBean sub = new TestSubBean();
    sub.setName("xxxxxx");
    sub.setParameter("maaaaak", "maaaav");
    subBeans.add(sub);
    bean.setSubBeans(subBeans);
    TestOtherBean otherBean = new TestOtherBean();
    BeanUtils.copyProperties(bean, otherBean, "alias");
    Assert.assertEquals(bean.getHeartbeat(), otherBean.getHeartbeat());
    Assert.assertFalse(bean.getAlias().equals(otherBean.getAlias()));
    Assert.assertEquals(bean.getSubBeans(), otherBean.getSubBeans());
    Assert.assertEquals(bean.isRegister(), otherBean.isRegister());
}