### Question:
CassandraService { public void errorIfNoTable(String tableName) { Where query = select("columnfamily_name").from("System", "schema_columnfamilies") .where(eq("keyspace_name", configuration.keyspace())) .and(eq("columnfamily_name", tableName)); ResultSet resultSet = sessionProvider.get().execute(query); if (resultSet.isExhausted()) { throw new NoTableException(tableName); } } @Inject protected  CassandraService(
			Provider<Session> sessionProvider,
			CassandraConfiguration configuration); void errorIfNoTable(String tableName);  }### Answer:
@Test public void testErrorIfNoTableWhenTable() { testee.errorIfNoTable(CassandraStructure.Schema.TABLE.get()); }
@Test(expected=NoTableException.class) public void testErrorIfNoTableWhenNoTable() { testee.errorIfNoTable("notExistingTable"); }