### Question:
PartitionSettings { public String[] getCodes() { return codes; } PartitionSettings( int exactSize, TransMeta transMeta, StepMeta stepMeta,
                            PartitionSchemasProvider schemasProvider ); void fillOptionsAndCodesByPlugins( List<PluginInterface> plugins ); int getDefaultSelectedMethodIndex(); int getDefaultSelectedSchemaIndex(); String getMethodByMethodDescription( String methodDescription ); String[] getOptions(); String[] getCodes(); List<String> getSchemaNames(); String[] getSchemaNamesArray(); List<PartitionSchema> getSchemas(); StepMeta getStepMeta(); void updateMethodType( int methodType ); void updateMethod( String method ); void updateSchema( PartitionSchema schema ); void rollback( StepMeta before ); StepMeta getBefore(); StepMeta getAfter(); TransMeta getTransMeta();  }### Answer:
@Test public void codesArePickedUpFromPlugins() { PartitionSettings settings = new PartitionSettings( StepPartitioningMeta.methodCodes.length, transMeta, stepMeta, partitionSchemasProvider ); assertTrue( Arrays.equals( StepPartitioningMeta.methodCodes, settings.getCodes() ) ); }