@SuppressWarnings("deprecation")
@Test
public void testFromConfig() {

    MaterialAndData value = ConfigurationUtils.toMaterialAndData("stone|2");
    MaterialSet set = MaterialSets.unionBuilder()
            .add(value)
            .build();
    assertFalse(set.testBlock(stone()));
    assertFalse(set.testBlock(dirt()));
    Block correct = stone();
    Mockito.when(correct.getData()).thenReturn((byte) 2);
    assertTrue(set.testBlock(correct));
}