@Test
public void encryptAndOptUserTest() throws SQLException {

    LoginUser user = LoginUser.builder().id(1L).build();
    List<DataBaseInfo> dBList = Lists.newArrayList(DataBaseInfo.builder().id(1L).dbname("tom").build());
    Assert.assertTrue(databaseService.encryptAndOptUser(user, dBList).getCode() == ServiceResult.SUCCESS);
}