@Test
public void fromAction() {

    class AtomicAction extends AtomicBoolean implements Action {
        private static final long serialVersionUID = -1517510584253657229L;
        @Override
        public void run() throws Exception {
            set(true);
        }
    }
    AtomicAction aa = new AtomicAction();
    Disposables.fromAction(aa).dispose();
    assertTrue(aa.get());
}