@@ -0,0 +1,847 @@
+package com.github.dreamhead.moco.bootstrap;%0A%0Aimport static com.github.dreamhead.moco.bootstrap.ShutdownArgs.parse;%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Test;%0A%0Apublic class ShutdownArgsTest %7B%0A%0A%09final int DEFAULT_SHUTDOWN_PORT = 9527;%0A%0A%09@Test%0A%09public void should_parse_shutdown_arguments() %7B%0A%09%09ShutdownArgs args = parse(new String%5B%5D %7B %22shutdown%22, %22-s%22, %2212305%22 %7D);%0A%09%09assertThat(12305, is(args.getShutdownPort(DEFAULT_SHUTDOWN_PORT)));%0A%09%7D%0A%0A%09@Test%0A%09public void should_parse_shutdown_default_arguments() %7B%0A%09%09ShutdownArgs args = parse(new String%5B%5D %7B %22shutdown%22 %7D);%0A%09%09assertThat(DEFAULT_SHUTDOWN_PORT,%0A%09%09%09%09is(args.getShutdownPort(DEFAULT_SHUTDOWN_PORT)));%0A%09%7D%0A%0A%09@Test(expected = ParseArgException.class)%0A%09public void should_set_shutdown_port() %7B%0A%09%09parse(new String%5B%5D %7B %22shutdown%22, %22-s%22 %7D);%0A%09%7D%0A%7D%0A

add test for ShutdownArgs