@Test
public void WhenPutInFlowIntThanGetItFromFlow() throws IOException {

    AddTwoNum obj = new AddTwoNum();
    System.setIn(new StringBufferInputStream("1"));
    int result = obj.mainFlow(new InputStreamReader(System.in));
    int message = 1;
    Assert.assertThat(result,is(message));
}