class SearchLevels {

    protected boolean isCpe(String potentialCpe){
        return (! (null == potentialCpe))
                && ( potentialCpe.startsWith(CPE_PREFIX) || potentialCpe.startsWith(OLD_CPE_PREFIX) )
                && potentialCpe.length() > 10;
    }

}

class SearchLevelsTest {

     SearchLevels searchLevels;

    @Test
    public void isCpeTestEmpty() {

        assert(!searchLevels.isCpe(""));
    }

}