@Test
public void shouldPromptFromStdinForPasswordIfPasswordParamSuppliedWithNoArg() throws Exception {

    when(userInputReader.read("Password")).thenReturn("user entered password");
    parser.parse(new String[] { "-P" }, dbDeploy);
    assertThat(dbDeploy.getPassword(), is("user entered password"));
}