@Test
	public void testShellWithMissingUsername() throws Exception {
		Bootstrap bootstrap = new Bootstrap();
		JLineShellComponent shell = bootstrap.getJLineShellComponent();
		CommandResult commandResult = shell.executeCommand(
				"admin config server --uri http://localhost:" + adminPort + " --password whosThere");
		assertThat(commandResult.isSuccess(), is(true));
		assertThat(commandResult.getResult(),
				equalTo((Object) "A password may be specified only together with a username"));
		commandResult = shell.executeCommand("module list");
		assertThat(commandResult.isSuccess(), is(false));
	}
Tests basic security support in the shell.

@author Marius Bogoevici
spring-xd-shell/src/test/java/org/springframework/xd/shell/security/SecuredShellAccessTests.java