### Question:
QueryBuilderFactory { public QueryBuilder getBuilder(StatementType statementType) { Args.checkNotNull(statementType); return registory.get(statementType); } QueryBuilderFactory(boolean normalize); QueryBuilder getBuilder(StatementType statementType);  }### Answer:
@Test public void StatementTypeのSTATEMENTに一致するQueryBuilderのインスタンスを取得できる() throws Exception { QueryBuilder builder = queryBuilderFactory.getBuilder(StatementType.STATEMENT); assertThat(builder, is(instanceOf(SimpleQueryBuilder.class))); }
@Test public void StatementTypeのPREPAREDに一致するQueryBuilderのインスタンスを取得できる() throws Exception { QueryBuilder builder = queryBuilderFactory.getBuilder(StatementType.PREPARED); assertThat(builder, is(instanceOf(PreparedQueryBuilder.class))); }
@Test public void StatementTypeのCALLABLEに一致するQueryBuilderのインスタンスを取得できる() throws Exception { QueryBuilder builder = queryBuilderFactory.getBuilder(StatementType.CALLABLE); assertThat(builder, is(instanceOf(CallableQueryBuilder.class))); }
@Test(expected = InternalException.class) public void 引数がNULLであることを表明() throws Exception { queryBuilderFactory.getBuilder(null); }