@Test
public void configurePasswordTest() {

    StringBuilder buf = new StringBuilder();
    Mockito.doReturn("true").when(configurationDao).getValue(Mockito.eq("system.vm.random.password"));
    Mockito.doReturn("123").when(configurationDao).getValue(Mockito.eq("system.vm.password"));
    spy.configurePassword(buf);
    Assert.assertEquals(" vmpassword=123", buf.toString());
}