ParticleTypeBlock { public ParticleType of(Material block) { return of(block, (byte) 0); }  ParticleType of(Material block); ParticleType of(Material block, int meta); ParticleType of(Material block, byte meta); boolean isValid();  }
@Test(expected = ParticleException.class) public void testExceptionOnInvalidType() { invalidParticleType.of(Material.DIAMOND_BLOCK, (byte) 0); }
@Test public void test_of_Material() { Material targetMat = Material.DIAMOND_BLOCK; byte targetByte = 0; particleType.of(targetMat); verify(particleType).of(targetMat, targetByte); }
@Test public void test_of_Material_Int() { Material targetMat = Material.DIAMOND_BLOCK; byte targetByte = 2; particleType.of(targetMat, (int) targetByte); verify(particleType).of(targetMat, targetByte); }