mil.dod.th.ose.time.service/test/mil/dod/th/ose/time/service/util/TestChangeSystemTimeWrapperImpl.java
@Test
    public void testSetSystemTime() throws IOException
    {
        //time: Nov 15, 2013 10:38:16
        long time = 1384529896856L;
        
        m_SUT.setSystemTime(time);
        
        ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);
        verify(m_Runtime, times(2)).exec(captor.capture());
        
        assertThat(captor.getAllValues().get(0), is("cmd /C time 10:38:16"));
        assertThat(captor.getAllValues().get(1), is("cmd /C date 11/15/2013"));
    }
/**
     * Verify that the system time function calls date and time commands
     * with the correct values as specified by the long in milliseconds
     * which represents the date Nov 15, 2013 10:38:16.
     */
Verify that the system time function calls date and time commands
with the correct values as specified by the long in milliseconds
which represents the date Nov 15, 2013 10:38:16.
Verify that the system time function calls date and time commands with the correct values as specified by the long in milliseconds which represents the date Nov 15 2013 10 : 38 : 16 .
@Test
    public void testSetSystemTime() throws IOException
    {
        long time = 1384529896856L;
        m_SUT.setSystemTime(time);
        ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);
        verify(m_Runtime, times(2)).exec(captor.capture());
        assertThat(captor.getAllValues().get(0), is("cmd /C time 10:38:16"));
        assertThat(captor.getAllValues().get(1), is("cmd /C date 11/15/2013"));
    }
@ Test public void testSetSystemTime ( ) throws IOException { long time = 1384529896856L ; m_SUT . setSystemTime ( time ) ; ArgumentCaptor < String > captor = ArgumentCaptor . forClass ( String . class ) ; verify ( m_Runtime , times ( 2 ) ) . exec ( captor . capture ( ) ) ; assertThat ( captor . getAllValues ( ) . get ( 0 ) , is ( "cmd /C time 10:38:16" ) ) ; assertThat ( captor . getAllValues ( ) . get ( 1 ) , is ( "cmd /C date 11/15/2013" ) ) ; }
Verify that the system time function calls date and time commands
 with the correct values as specified by the long in milliseconds
 which represents the date Nov 15, 2013 10:38:16.
Verify that the system time function calls date and time commands with the correct values as specified by the long in milliseconds which represents the date Nov 15 2013 10 : 38 : 16 .
//time: Nov 15, 2013 10:38:16