### Question:
NodeSchemaManager { public int getCost(int level) { Preconditions.checkArgument(level <= maxLevel && level >= (NetConstants.ROOT_LEVEL)); return allSchema.get(level - NetConstants.ROOT_LEVEL).getCost(); } private  NodeSchemaManager(); static NodeSchemaManager getInstance(); void init(ConfigurationSource conf); @VisibleForTesting void init(NodeSchema[] schemas, boolean enforce); int getMaxLevel(); int getCost(int level); String complete(String path);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testFailure1() { manager.getCost(0); }