### Question:
ViewActions { public static ViewSelector<ViewSelectStatementChooser> create() { return new CreateViewAction(); } private  ViewActions(); static ViewSelector<ViewSelectStatementChooser> create(); static ViewSelector<ViewAction> dropIfExists();  }### Answer:
@Test public void shouldCreateViewFromProvidedQuery() throws Exception { ViewActions .create() .view("view_a") .as(select().from("table_a").build()) .perform(db); Mockito.verify(db).execSQL("CREATE VIEW view_a AS SELECT * FROM table_a"); }
@Test(expected = IllegalArgumentException.class) public void shouldNotAllowUsingQueryWithBoundArgs() throws Exception { ViewActions .create() .view("view_a") .as( select() .from("table_a") .where(column("col_a").eq().arg(), "test") .build() ); }