@Test
public void writeTouchEvents() throws IOException{

    TouchEvent testevent = serializeEvent(test);
    ew.write(testevent);
    MotionEvent result = obtainOutput();
    assertEventEquals(test, result);
}