### Question:
JdbcPartitionFragmenter extends BaseFragmenter { @Override public void initialize(RequestContext context) { super.initialize(context); String partitionByOption = context.getOption("PARTITION_BY"); if (partitionByOption == null) return; try { String[] partitionBy = partitionByOption.split(":"); column = partitionBy[0]; partitionType = PartitionType.of(partitionBy[1]); } catch (ArrayIndexOutOfBoundsException e) { throw new IllegalArgumentException("The parameter 'PARTITION_BY' has incorrect format. The correct format is '<column_name>:{int|date|enum}'"); } range = context.getOption("RANGE"); interval = context.getOption("INTERVAL"); }  @Override void initialize(RequestContext context); @Override List<Fragment> getFragments(); @Override FragmentStats getFragmentStats();  }### Answer:
@Test public void testPartitionByTypeInvalid() { thrown.expect(IllegalArgumentException.class); context.addOption("PARTITION_BY", "level:float"); new JdbcPartitionFragmenter().initialize(context); }
@Test public void testPartitionByFormatInvalid() { thrown.expect(IllegalArgumentException.class); context.addOption("PARTITION_BY", "level-enum"); new JdbcPartitionFragmenter().initialize(context); }