class TodoActivity extends Activity {

	TodoProvider getProvider()
	{
		return TodoActivity.this.dataProvider;
	}

}

class TodoActivityTest {

	@Test
	public void should_remove_task() throws Exception
	{

		final TodoActivity activity = Robolectric.buildActivity(TodoActivity.class).create().get();

		activity.getProvider().addTask("Some task");
		activity.getProvider().deleteTask("Some task");
		final List<String> tasks = activity.getProvider().findAll();
		Assert.assertEquals(tasks.size(), 0);
	}

}