public static void checkArgument(boolean b) {
        if (!b) {
            throw new IllegalArgumentException();
        }
    }
@Test
    public void testPreconditionsMalformed(){

        //No %s:
        Preconditions.checkArgument(true, "This is malformed", "A", "B", "C");
        try{
            Preconditions.checkArgument(false, "This is malformed", "A", "B", "C");
        } catch (IllegalArgumentException e){
            assertEquals("This is malformed [A,B,C]", e.getMessage());
        }

        //More args than %s:
        Preconditions.checkArgument(true, "This is %s malformed", "A", "B", "C");
        try{
            Preconditions.checkArgument(false, "This is %s malformed", "A", "B", "C");
        } catch (IllegalArgumentException e){
            assertEquals("This is A malformed [B,C]", e.getMessage());
        }

        //No args
        Preconditions.checkArgument(true, "This is %s %s malformed");
        try{
            Preconditions.checkArgument(false, "This is %s %s malformed");
        } catch (IllegalArgumentException e){
            assertEquals("This is %s %s malformed", e.getMessage());
        }

        //More %s than args
        Preconditions.checkArgument(true, "This is %s %s malformed", "A");
        try{
            Preconditions.checkArgument(false, "This is %s %s malformed", "A");
        } catch (IllegalArgumentException e){
            assertEquals("This is A %s malformed", e.getMessage());
        }
    }